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.
This commit is contained in:
Nick Alcock 2016-12-26 10:09:00 +01:00 committed by Florian Weimer
parent 524a8ef2ad
commit 7cbb738d21
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2016-12-26 Nick Alcock <nick.alcock@oracle.com>
[BZ #7065]
* elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for
non-libc-linking testcase.
2016-12-26 Nick Alcock <nick.alcock@oracle.com>
Adhemerval Zanella <adhemerval.zanella@linaro.org>
Florian Weimer <fweimer@redhat.com>

View File

@ -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