From a62fb5b34e31a164a0fdede1ce969ef5cb515e6f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 16 Jan 2018 11:59:58 +0000 Subject: [PATCH] Add "-z undefs" option to the linker. --- binutils-z-undefs.patch | 71 +++++++++++++++++++++++++++++++++++++++++ binutils.spec | 11 ++++++- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 binutils-z-undefs.patch diff --git a/binutils-z-undefs.patch b/binutils-z-undefs.patch new file mode 100644 index 0000000..fe0f6f0 --- /dev/null +++ b/binutils-z-undefs.patch @@ -0,0 +1,71 @@ +diff -rup binutils.orig/ld/emultempl/elf32.em binutils-2.29.1/ld/emultempl/elf32.em +--- binutils.orig/ld/emultempl/elf32.em 2018-01-16 11:34:58.040749108 +0000 ++++ binutils-2.29.1/ld/emultempl/elf32.em 2018-01-16 11:35:35.697303875 +0000 +@@ -2666,6 +2666,8 @@ fragment < 2.29.1-12 +- Add "-z undefs" option to the linker. + * Thu Jan 11 2018 Nick Clifton 2.29.1-11 - *Do* enable relro by default for the PowerPC64 architecture. (#1523946)