From patchwork Tue Jul 17 05:07:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zong Li X-Patchwork-Id: 28436 Received: (qmail 93235 invoked by alias); 17 Jul 2018 05:09:29 -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 93143 invoked by uid 89); 17 Jul 2018 05:09:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_MANYTO, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: ATCSQR.andestech.com From: Zong Li To: , , , , , , CC: , , Zong Li Subject: [PATCH v2 11/12] Fix the ld flags not be applied to tst-execstack-mod.so Date: Tue, 17 Jul 2018 13:07:57 +0800 Message-ID: <5d131e1e95cc613c64df3a91dbce86bd2c3fb1b0.1531801545.git.zong@andestech.com> In-Reply-To: References: MIME-Version: 1.0 X-DNSRBL: X-MAIL: ATCSQR.andestech.com w6H59tMo070177 Fix the ld flags for applying the 'execstack' option correctly. --- elf/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elf/Makefile b/elf/Makefile index 41cc368..15483a9 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -1004,7 +1004,7 @@ $(objpfx)tst-execstack: $(libdl) $(objpfx)tst-execstack.out: $(objpfx)tst-execstack-mod.so CPPFLAGS-tst-execstack.c += -DUSE_PTHREADS=0 LDFLAGS-tst-execstack = -Wl,-z,noexecstack -LDFLAGS-tst-execstack-mod = -Wl,-z,execstack +LDFLAGS-tst-execstack-mod.so = -Wl,-z,execstack $(objpfx)tst-execstack-needed: $(objpfx)tst-execstack-mod.so LDFLAGS-tst-execstack-needed = -Wl,-z,noexecstack