From 01d8a0a9455f9408819d7f135fba5139f0672507 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20S=C3=B8rensen?= Date: Wed, 11 Jul 2018 09:31:09 -0500 Subject: [PATCH] package/Makefile.in: Add missing options to LDFLAGS for full RELRO build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The options for a full RELRO build should also be added to LDFLAGS. Originally submitted as http://patchwork.ozlabs.org/patch/904034/ Signed-off-by: Stefan Sørensen Signed-off-by: Matt Weber Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Thomas Petazzoni --- package/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Makefile.in b/package/Makefile.in index 5e0ff8c841..14b3bbd243 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -159,7 +159,7 @@ TARGET_HARDENED += $(TARGET_CFLAGS_RELRO) TARGET_LDFLAGS += $(TARGET_CFLAGS_RELRO) else ifeq ($(BR2_RELRO_FULL),y) TARGET_HARDENED += -fPIE $(TARGET_CFLAGS_RELRO_FULL) -TARGET_LDFLAGS += -pie +TARGET_LDFLAGS += -pie $(TARGET_CFLAGS_RELRO_FULL) endif ifeq ($(BR2_FORTIFY_SOURCE_1),y) -- 2.30.2