Bug 11756 - package/syslinux: MBR's don't fit because of binutils new .note.gnu.property section
Summary: package/syslinux: MBR's don't fit because of binutils new .note.gnu.property ...
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-05 06:18 UTC by Christian Stewart
Modified: 2019-04-07 09:56 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Stewart 2019-04-05 06:18:31 UTC
Corresponding bug reports:

 - https://bugs.archlinux.org/task/60405
 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414


Build failure: 

workspaces/qemu/host/bin/x86_64-buildroot-linux-gnu-ld  -T workspaces/qemu/build/syslinux-6.03/mbr/i386/mbr.ld -e _start -o mbr.elf mbr.o                                                
objcopy -O binary mbr.elf mbr.bin
perl workspaces/qemu/build/syslinux-6.03/mbr/checksize.pl mbr.bin
mbr.bin: too big (452 > 440)
make[7]: *** [workspaces/qemu/build/syslinux-6.03/mbr/Makefile:42: mbr.bin] Error 1


Description:

objcopy -O binary mbr.elf mbr.bin
perl /build/syslinux/src/syslinux/mbr/checksize.pl mbr.bin
mbr.bin: too big (452 > 440)

Fixed in Archlinux32 by stripping the .note.gnu.property in the linker scripts
of the MBRs.
Comment 1 Peter Korsgaard 2019-04-07 09:56:09 UTC
Fixed in git, thanks:
https://git.buildroot.org/buildroot/commit/?id=0ca17cdc925124d1b309788518e9d4834b9b2557