diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2016-12-26 10:09:00 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-12-26 10:11:05 +0100 |
commit | 7cbb738d218fad3bc91deebfd8ce5f3918592b84 (patch) | |
tree | 792a6637fe557c32a8ec784e044c891aab96e91e /elf | |
parent | 524a8ef2ad76af8ac049293d993a1856b0d888fb (diff) | |
download | glibc-7cbb738d218fad3bc91deebfd8ce5f3918592b84.zip glibc-7cbb738d218fad3bc91deebfd8ce5f3918592b84.tar.gz glibc-7cbb738d218fad3bc91deebfd8ce5f3918592b84.tar.bz2 |
Link a non-libc-using test with -fno-stack-protector [BZ #7065]
This test cannot reference __stack_chk_fail because it is not linked
with libc at all.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index 04d5f07..8a2ce02 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -792,6 +792,9 @@ $(objpfx)filtmod1.so: $(objpfx)filtmod1.os $(objpfx)filtmod2.so $< -Wl,-F,$(objpfx)filtmod2.so $(objpfx)filter: $(objpfx)filtmod1.so +# This does not link against libc. +CFLAGS-filtmod1.c = $(no-stack-protector) + $(objpfx)unload: $(libdl) $(objpfx)unload.out: $(objpfx)unloadmod.so |