* [Buildroot] [PATCH 1/1] boot/syslinux: fix build with binutils note gnu property section
@ 2019-04-05 6:40 Christian Stewart
2019-04-07 8:55 ` Yann E. MORIN
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Christian Stewart @ 2019-04-05 6:40 UTC (permalink / raw)
To: buildroot
This fixes the following build error with newer binutils:
objcopy -O binary mbr.elf mbr.bin
perl /build/syslinux/src/syslinux/mbr/checksize.pl mbr.bin
mbr.bin: too big (452 > 440)
Corresponding bug reports:
- https://bugs.archlinux.org/task/60405
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
Strips the .note.gnu.property in the linker scripts for the MBRs.
Signed-off-by: Christian Stewart <christian@paral.in>
---
...h-binutils-note-gnu-property-section.patch | 47 +++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch
diff --git a/boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch b/boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch
new file mode 100644
index 0000000000..fedd815691
--- /dev/null
+++ b/boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch
@@ -0,0 +1,47 @@
+From beb526ca925983c7da229043790ecd552d910650 Mon Sep 17 00:00:00 2001
+From: Christian Stewart <christian@paral.in>
+Date: Thu, 4 Apr 2019 23:24:31 -0700
+Subject: [PATCH] Fix build with binutils note gnu property section
+
+This fixes the following build error with newer binutils:
+
+ objcopy -O binary mbr.elf mbr.bin
+ perl /build/syslinux/src/syslinux/mbr/checksize.pl mbr.bin
+ mbr.bin: too big (452 > 440)
+
+Corresponding bug reports:
+
+ - https://bugs.archlinux.org/task/60405
+ - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
+
+Strips the .note.gnu.property in the linker scripts for the MBRs.
+
+Signed-off-by: Christian Stewart <christian@paral.in>
+---
+ 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 d14ba802..53683461 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 ae27d49a..b8c0d895 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) }
+ }
+--
+2.21.0
+
--
2.21.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 1/1] boot/syslinux: fix build with binutils note gnu property section
2019-04-05 6:40 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with binutils note gnu property section Christian Stewart
@ 2019-04-07 8:55 ` Yann E. MORIN
2019-04-07 9:54 ` Peter Korsgaard
2019-04-14 20:28 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2019-04-07 8:55 UTC (permalink / raw)
To: buildroot
Christian, All,
On 2019-04-04 23:40 -0700, Christian Stewart spake thusly:
> This fixes the following build error with newer binutils:
>
> objcopy -O binary mbr.elf mbr.bin
> perl /build/syslinux/src/syslinux/mbr/checksize.pl mbr.bin
> mbr.bin: too big (452 > 440)
>
> Corresponding bug reports:
>
> - https://bugs.archlinux.org/task/60405
> - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
>
> Strips the .note.gnu.property in the linker scripts for the MBRs.
>
> Signed-off-by: Christian Stewart <christian@paral.in>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> ...h-binutils-note-gnu-property-section.patch | 47 +++++++++++++++++++
> 1 file changed, 47 insertions(+)
> create mode 100644 boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch
>
> diff --git a/boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch b/boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch
> new file mode 100644
> index 0000000000..fedd815691
> --- /dev/null
> +++ b/boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch
> @@ -0,0 +1,47 @@
> +From beb526ca925983c7da229043790ecd552d910650 Mon Sep 17 00:00:00 2001
> +From: Christian Stewart <christian@paral.in>
> +Date: Thu, 4 Apr 2019 23:24:31 -0700
> +Subject: [PATCH] Fix build with binutils note gnu property section
> +
> +This fixes the following build error with newer binutils:
> +
> + objcopy -O binary mbr.elf mbr.bin
> + perl /build/syslinux/src/syslinux/mbr/checksize.pl mbr.bin
> + mbr.bin: too big (452 > 440)
> +
> +Corresponding bug reports:
> +
> + - https://bugs.archlinux.org/task/60405
> + - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
> +
> +Strips the .note.gnu.property in the linker scripts for the MBRs.
> +
> +Signed-off-by: Christian Stewart <christian@paral.in>
> +---
> + 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 d14ba802..53683461 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 ae27d49a..b8c0d895 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) }
> + }
> +--
> +2.21.0
> +
> --
> 2.21.0
>
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] [PATCH 1/1] boot/syslinux: fix build with binutils note gnu property section
2019-04-05 6:40 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with binutils note gnu property section Christian Stewart
2019-04-07 8:55 ` Yann E. MORIN
@ 2019-04-07 9:54 ` Peter Korsgaard
2019-04-14 20:28 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2019-04-07 9:54 UTC (permalink / raw)
To: buildroot
>>>>> "Christian" == Christian Stewart <christian@paral.in> writes:
> This fixes the following build error with newer binutils:
> objcopy -O binary mbr.elf mbr.bin
> perl /build/syslinux/src/syslinux/mbr/checksize.pl mbr.bin
> mbr.bin: too big (452 > 440)
> Corresponding bug reports:
> - https://bugs.archlinux.org/task/60405
> - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
> Strips the .note.gnu.property in the linker scripts for the MBRs.
> Signed-off-by: Christian Stewart <christian@paral.in>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/1] boot/syslinux: fix build with binutils note gnu property section
2019-04-05 6:40 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with binutils note gnu property section Christian Stewart
2019-04-07 8:55 ` Yann E. MORIN
2019-04-07 9:54 ` Peter Korsgaard
@ 2019-04-14 20:28 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2019-04-14 20:28 UTC (permalink / raw)
To: buildroot
>>>>> "Christian" == Christian Stewart <christian@paral.in> writes:
> This fixes the following build error with newer binutils:
> objcopy -O binary mbr.elf mbr.bin
> perl /build/syslinux/src/syslinux/mbr/checksize.pl mbr.bin
> mbr.bin: too big (452 > 440)
> Corresponding bug reports:
> - https://bugs.archlinux.org/task/60405
> - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414
> Strips the .note.gnu.property in the linker scripts for the MBRs.
> Signed-off-by: Christian Stewart <christian@paral.in>
Committed to 2019.02.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-04-14 20:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-05 6:40 [Buildroot] [PATCH 1/1] boot/syslinux: fix build with binutils note gnu property section Christian Stewart
2019-04-07 8:55 ` Yann E. MORIN
2019-04-07 9:54 ` Peter Korsgaard
2019-04-14 20:28 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox