boot/syslinux: fix build with binutils note gnu property section
authorChristian Stewart <christian@paral.in>
Fri, 5 Apr 2019 06:40:55 +0000 (23:40 -0700)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 7 Apr 2019 09:54:48 +0000 (11:54 +0200)
commit0ca17cdc925124d1b309788518e9d4834b9b2557
tree6d5b2c4db3a3f7fa4bd44230de7bd2bd01f01436
parentfbc218b4f84550302de87c5d23ffd78187cbc59b
boot/syslinux: fix build with binutils note gnu property section

Fixes #11756

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

Strip 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>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
boot/syslinux/0014-Fix-build-with-binutils-note-gnu-property-section.patch [new file with mode: 0644]