summarylogtreecommitdiffstats
path: root/ldflags_relro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ldflags_relro.patch')
-rw-r--r--ldflags_relro.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/ldflags_relro.patch b/ldflags_relro.patch
new file mode 100644
index 000000000000..a9a6268f7252
--- /dev/null
+++ b/ldflags_relro.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2018-12-26 17:34:57.439917000 +0100
++++ Makefile 2018-12-26 17:55:40.305447679 +0100
+@@ -1,7 +1,7 @@
+ VERSION=540.1.linux3
+
+ CFLAGS += -I$(PWD)/include -DDEBUG_BUILD=0 -D_FILE_OFFSET_BITS=64 -D LINUX=1 -D BSD=1 -D VERSION=\"$(VERSION)\"
+-LDFLAGS := -Wl,--build-id
++LDFLAGS := -Wl,--build-id,-O1,--sort-common,--as-needed,-z,relro,-z,now
+ SUBDIRS := newfs_hfs.tproj fsck_hfs.tproj
+
+ all clean: