Skip to content

Commit fd82dff

Browse files
committed
Use absoloute paths to linker scripts
As is common with autotools enabled software, building and testing happens outside the source directory. The introduction of `contiguous-note-sections` test in 0.13 broke this by assuming linker scripts to exist in the current working directory. Point at the absoloute source directory explicitly to unbreak linking in such build environments. Spotted on OpenBSD where source and build assets are commonly separated iff possible.
1 parent bf3f37e commit fd82dff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ no_rpath_SOURCES = no-rpath.c
137137
no_rpath_CFLAGS =
138138

139139
contiguous_note_sections_SOURCES = contiguous-note-sections.s contiguous-note-sections.ld
140-
contiguous_note_sections_LDFLAGS = -nostdlib -T contiguous-note-sections.ld
140+
contiguous_note_sections_LDFLAGS = -nostdlib -T $(srcdir)/contiguous-note-sections.ld
141141
contiguous_note_sections_CFLAGS = -pie
142142

143143
phdr_corruption_so_SOURCES = void.c phdr-corruption.ld
144-
phdr_corruption_so_LDFLAGS = -nostdlib -shared -Wl,-Tphdr-corruption.ld
144+
phdr_corruption_so_LDFLAGS = -nostdlib -shared -Wl,-T$(srcdir)/phdr-corruption.ld
145145
phdr_corruption_so_CFLAGS =

0 commit comments

Comments
 (0)