From 7cbb738d218fad3bc91deebfd8ce5f3918592b84 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Mon, 26 Dec 2016 10:09:00 +0100 Subject: 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. --- elf/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'elf/Makefile') diff --git a/elf/Makefile b/elf/Makefile index 04d5f0721c..8a2ce02cd5 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 -- cgit 1.4.1