Add missing flags pie
authorSophie Brun <sophie@offensive-security.com>
Tue, 11 Feb 2020 16:02:17 +0000 (17:02 +0100)
committerSophie Brun <sophie@offensive-security.com>
Mon, 14 Feb 2022 13:32:56 +0000 (13:32 +0000)
Last-Update: 2022-02-11

Gbp-Pq: Name add-missing-flags-pie.patch

Makefile

index 85e36a82acfa4a5dfc26a4a7234a8610ce23191a..c75c10f4c0fc326559661200721b4ce2e35372d2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -181,7 +181,7 @@ COMMON_FLAGS += $(call test_ccflag,-Wno-address-of-packed-member)
 COMMON_FLAGS += $(call test_ccflag,-Wno-unknown-warning)
 
 # Needs -Wl because LD is actually set to CC by default.
-LDFLAGS += -Wl,--gc-sections
+LDFLAGS += -Wl,--gc-sections -pie
 
 ifneq ($(filter-out 0,${DEBUG})$(filter-out 0,${TEST_PRINT}),)
 CFLAGS += -DVBOOT_DEBUG