archrelease: copy trunk to extra-x86_64
[arch-packages.git] / syslinux / repos / core-x86_64 / 0016-strip-gnu-property.patch
blob69656f92a427c3ded0afb0fde3e4cd491a26ed56
1 From: Lukas Schwaighofer <lukas@schwaighofer.name>
2 Date: Sat, 18 Aug 2018 12:48:21 +0200
3 Subject: Strip the .note.gnu.property section for the mbr
5 This section is added since binutils Debian version 2.31.1-2 and causes mbr.bin
6 to grow in size beyond what can fit into the master boot record.
8 Forwarded: https://www.syslinux.org/archives/2018-August/026168.html
9 ---
10 mbr/i386/mbr.ld | 6 +++++-
11 mbr/x86_64/mbr.ld | 6 +++++-
12 2 files changed, 10 insertions(+), 2 deletions(-)
14 diff --git a/mbr/i386/mbr.ld b/mbr/i386/mbr.ld
15 index d14ba80..6d48990 100644
16 --- a/mbr/i386/mbr.ld
17 +++ b/mbr/i386/mbr.ld
18 @@ -69,5 +69,9 @@ SECTIONS
19 .debug_funcnames 0 : { *(.debug_funcnames) }
20 .debug_typenames 0 : { *(.debug_typenames) }
21 .debug_varnames 0 : { *(.debug_varnames) }
22 - /DISCARD/ : { *(.note.GNU-stack) }
23 + /DISCARD/ :
24 + {
25 + *(.note.GNU-stack)
26 + *(.note.gnu.property)
27 + }
29 diff --git a/mbr/x86_64/mbr.ld b/mbr/x86_64/mbr.ld
30 index ae27d49..5b46db6 100644
31 --- a/mbr/x86_64/mbr.ld
32 +++ b/mbr/x86_64/mbr.ld
33 @@ -68,5 +68,9 @@ SECTIONS
34 .debug_funcnames 0 : { *(.debug_funcnames) }
35 .debug_typenames 0 : { *(.debug_typenames) }
36 .debug_varnames 0 : { *(.debug_varnames) }
37 - /DISCARD/ : { *(.note.GNU-stack) }
38 + /DISCARD/ :
39 + {
40 + *(.note.GNU-stack)
41 + *(.note.gnu.property)
42 + }