summaryrefslogtreecommitdiff
path: root/libre/syslinux/strip_note_section.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2019-02-18 02:11:22 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2019-02-18 02:11:22 -0500
commit9320730ec7d9f3808114ab4fedc750d87aa29a16 (patch)
tree6a8cc443dc37a22c1a78ce20e7790c4b62c5a868 /libre/syslinux/strip_note_section.patch
parentee06a5f8b9001ee514c7c4c3f692e069654855f2 (diff)
downloadabslibre-9320730ec7d9f3808114ab4fedc750d87aa29a16.tar.gz
abslibre-9320730ec7d9f3808114ab4fedc750d87aa29a16.tar.bz2
abslibre-9320730ec7d9f3808114ab4fedc750d87aa29a16.zip
syslinux-6.04.pre1.r41.g5e426532-1.par1: updating version
Diffstat (limited to 'libre/syslinux/strip_note_section.patch')
-rw-r--r--libre/syslinux/strip_note_section.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/libre/syslinux/strip_note_section.patch b/libre/syslinux/strip_note_section.patch
new file mode 100644
index 000000000..b71b69d07
--- /dev/null
+++ b/libre/syslinux/strip_note_section.patch
@@ -0,0 +1,29 @@
+Author: Lukas Schwaighofer <lukas@schwaighofer.name>
+Description: 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.
+---
+ mbr/i386/mbr.ld | 1 +
+ mbr/x86_64/mbr.ld | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/mbr/i386/mbr.ld b/mbr/i386/mbr.ld
+index d14ba80..5368346 100644
+--- a/mbr/i386/mbr.ld
++++ b/mbr/i386/mbr.ld
+@@ -70,4 +70,5 @@ SECTIONS
+ .debug_typenames 0 : { *(.debug_typenames) }
+ .debug_varnames 0 : { *(.debug_varnames) }
+ /DISCARD/ : { *(.note.GNU-stack) }
++ /DISCARD/ : { *(.note.gnu.property) }
+ }
+diff --git a/mbr/x86_64/mbr.ld b/mbr/x86_64/mbr.ld
+index ae27d49..b8c0d89 100644
+--- a/mbr/x86_64/mbr.ld
++++ b/mbr/x86_64/mbr.ld
+@@ -69,4 +69,5 @@ SECTIONS
+ .debug_typenames 0 : { *(.debug_typenames) }
+ .debug_varnames 0 : { *(.debug_varnames) }
+ /DISCARD/ : { *(.note.GNU-stack) }
++ /DISCARD/ : { *(.note.gnu.property) }
+ }