Bug 11756

Summary: package/syslinux: MBR's don't fit because of binutils new .note.gnu.property section
Product: buildroot Reporter: Christian Stewart <christian>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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