From patchwork Thu Jul 12 08:19:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zong Li X-Patchwork-Id: 28324 Received: (qmail 72624 invoked by alias); 12 Jul 2018 08:19:26 -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 72614 invoked by uid 89); 12 Jul 2018 08:19:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.0 required=5.0 tests=BAYES_40, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:14.3.123.3, H*RU:14.3.123.3, H*r:14.3.123, H*r:ip*14.3.123.3 X-HELO: ATCSQR.andestech.com From: Zong Li To: , CC: , Zong Li Subject: [PATCH] Fix the ld flags not be applied to tst-execstack-mod.so Date: Thu, 12 Jul 2018 16:19:04 +0800 Message-ID: <1531383544-20578-1-git-send-email-zong@andestech.com> MIME-Version: 1.0 X-DNSRBL: X-MAIL: ATCSQR.andestech.com w6C8KRsj098314 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