summarylogtreecommitdiffstats
path: root/lto-discard.patch
diff options
context:
space:
mode:
authorJanez Zemva2018-02-04 17:38:52 +0100
committerJanez Zemva2018-02-04 17:38:52 +0100
commit88c5d6e30f1e9d186d48d7ff2956373ef1394eae (patch)
tree1b69b50dfb11f20cd6cdc33ae0e6a30d5fee7e7f /lto-discard.patch
parent730daf9b4131b485e990de78175c71af27d48dfe (diff)
downloadaur-88c5d6e30f1e9d186d48d7ff2956373ef1394eae.tar.gz
some fixes
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) }