summaryrefslogtreecommitdiff
path: root/libre/syslinux/0016-strip-gnu-property.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2019-04-15 09:55:41 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2019-04-15 09:55:41 -0500
commit859c853ee4ecbb8ee958e3b61e12fca9aca8cd53 (patch)
tree6b69522fdd41a91da8a8b1d22c3e9bf5f4eb65dd /libre/syslinux/0016-strip-gnu-property.patch
parent4106007657ac82b8df2219ea4b7c97686055f4f9 (diff)
syslinux-6.04.pre2.r11.gbf6db5b4-1.par1: updating version
Diffstat (limited to 'libre/syslinux/0016-strip-gnu-property.patch')
-rw-r--r--libre/syslinux/0016-strip-gnu-property.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/libre/syslinux/0016-strip-gnu-property.patch b/libre/syslinux/0016-strip-gnu-property.patch
new file mode 100644
index 000000000..69656f92a
--- /dev/null
+++ b/libre/syslinux/0016-strip-gnu-property.patch
@@ -0,0 +1,43 @@
+From: Lukas Schwaighofer <lukas@schwaighofer.name>
+Date: Sat, 18 Aug 2018 12:48:21 +0200
+Subject: Strip the .note.gnu.property section for the mbr
+
+This section is added since binutils Debian version 2.31.1-2 and causes mbr.bin
+to grow in size beyond what can fit into the master boot record.
+
+Forwarded: https://www.syslinux.org/archives/2018-August/026168.html
+---
+ mbr/i386/mbr.ld | 6 +++++-
+ mbr/x86_64/mbr.ld | 6 +++++-
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+diff --git a/mbr/i386/mbr.ld b/mbr/i386/mbr.ld
+index d14ba80..6d48990 100644
+--- a/mbr/i386/mbr.ld
++++ b/mbr/i386/mbr.ld
+@@ -69,5 +69,9 @@ SECTIONS
+ .debug_funcnames 0 : { *(.debug_funcnames) }
+ .debug_typenames 0 : { *(.debug_typenames) }
+ .debug_varnames 0 : { *(.debug_varnames) }
+- /DISCARD/ : { *(.note.GNU-stack) }
++ /DISCARD/ :
++ {
++ *(.note.GNU-stack)
++ *(.note.gnu.property)
++ }
+ }
+diff --git a/mbr/x86_64/mbr.ld b/mbr/x86_64/mbr.ld
+index ae27d49..5b46db6 100644
+--- a/mbr/x86_64/mbr.ld
++++ b/mbr/x86_64/mbr.ld
+@@ -68,5 +68,9 @@ SECTIONS
+ .debug_funcnames 0 : { *(.debug_funcnames) }
+ .debug_typenames 0 : { *(.debug_typenames) }
+ .debug_varnames 0 : { *(.debug_varnames) }
+- /DISCARD/ : { *(.note.GNU-stack) }
++ /DISCARD/ :
++ {
++ *(.note.GNU-stack)
++ *(.note.gnu.property)
++ }
+ }