summarylogtreecommitdiffstats
path: root/lto-discard.patch
diff options
context:
space:
mode:
authorAndris Pavenis2017-12-06 16:41:30 +0200
committerAndris Pavenis2018-01-07 06:48:40 +0200
commit590caeff7025384df517f977012a2ef10557bbf1 (patch)
tree0bd15570b5c68aec2c31002318d285a1281cfc69 /lto-discard.patch
parent284cddd6d5450f954b0cfe52d1944998dff09cfe (diff)
downloadaur-590caeff7025384df517f977012a2ef10557bbf1.tar.gz
Update to binutils-2.29.1
Diffstat (limited to 'lto-discard.patch')
-rw-r--r--lto-discard.patch29
1 files changed, 12 insertions, 17 deletions
diff --git a/lto-discard.patch b/lto-discard.patch
index 931aa20e95ee..2194e39a050b 100644
--- a/lto-discard.patch
+++ b/lto-discard.patch
@@ -1,17 +1,12 @@
---- binutils-2.29/ld/scripttempl/i386go32.sc
-+++ binutils-2.29/ld/scripttempl/i386go32.sc
-@@ -19,6 +19,7 @@
- *(SORT(.dtors.*))
- *(.dtor) *(.dtors)
- }'
-+DISCARDED="/DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) }"
-
- cat <<EOF
- /* Copyright (C) 2014-2017 Free Software Foundation, Inc.
-@@ -82,5 +83,6 @@
- . $srcdir/scripttempl/DWARF.sc
-
- cat <<EOF
-+ ${RELOCATING+${DISCARDED}}
- }
- EOF
+diff -ur src/binutils-2.29.1.orig/ld/scripttempl/i386go32.sc src/binutils-2.29.1/ld/scripttempl/i386go32.sc
+--- src/binutils-2.29.1.orig/ld/scripttempl/i386go32.sc 2017-12-28 16:44:53.887247994 +0200
++++ src/binutils-2.29.1/ld/scripttempl/i386go32.sc 2017-12-28 16:54:10.917217558 +0200
+@@ -84,7 +84,7 @@
+ ${RELOCATING+ . = ALIGN(${SEGMENT_SIZE});}
+ }
+ /* Discard LTO sections. */
+- /DISCARD/ : { *(gnu.lto_*) }
++ /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(gnu.lto_*) }
+ /* Stabs debugging sections. */
+ .stab 0 : { *(.stab) }
+ .stabstr 0 : { *(.stabstr) }