File: add-missing-flags-pie.patch

package info (click to toggle)
vboot-utils 0~R106-15054.B%2Bdfsg-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,592 kB
  • sloc: ansic: 48,956; sh: 9,637; makefile: 1,006; pascal: 77; python: 61
file content (22 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Sophie Brun <sophie@offensive-security.com>
Date: Tue, 11 Feb 2020 17:02:17 +0100
Subject: Add missing flags pie

Last-Update: 2022-02-11
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 6834e57..4feed15 100644
--- 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