From patchwork Mon Dec 19 11:15:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nix X-Patchwork-Id: 18562 Received: (qmail 117040 invoked by alias); 19 Dec 2016 11:25:14 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 117031 invoked by uid 89); 19 Dec 2016 11:25:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=WlF, wlf, 7756 X-HELO: mail.esperi.org.uk From: Nix To: libc-alpha@sourceware.org Cc: fweimer@redhat.com Subject: [PATCH 10/15] Link a non-libc-using test with -fno-stack-protector. Date: Mon, 19 Dec 2016 11:15:23 +0000 Message-Id: <20161219111528.14969-11-nix@esperi.org.uk> In-Reply-To: <20161219111528.14969-1-nix@esperi.org.uk> References: <20161219111528.14969-1-nix@esperi.org.uk> X-DCC--Metrics: spindle 1480; Body=2 Fuz1=2 Fuz2=2 From: Nick Alcock This test cannot see __stack_chk_fail() because it is not linked with libc at all. v3: Use $(no-stack-protector). v10: Drop a bunch of tests that don't need this option. * elf/Makefile (CFLAGS-filtmod1.c): Use $(no-stack-protector) for non-libc-linking testcase. --- elf/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elf/Makefile b/elf/Makefile index daf0ebd..2c87a94 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -775,6 +775,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