amd64 head -r351153 self-built but via devel/llvm90: 'objcopy: elf_update() failed: Layout constraint violation' for gptboot.bin

Dimitry Andric dim at FreeBSD.org
Tue Sep 3 19:28:31 UTC 2019


On 17 Aug 2019, at 05:33, Mark Millard <marklmi at yahoo.com> wrote:
> 
> I upgraded to head -r351153 and then attempted a buildworld
> buildkernel via devel/llvm90 (rc2 via ports head -r509054),
> but that (from scratch) build attempt got:
> 
> --- gptboot.bin ---
> objcopy: elf_update() failed: Layout constraint violation
> *** [gptboot.bin] Error code 1
> make[5]: *** gptboot.bin removed


It turns out this is an lld issue with the -N option, introduced with
https://reviews.llvm.org/rLLD360593:

https://bugs.llvm.org/show_bug.cgi?id=43212

Before, -N did not do that much, but that change can cause section
offsets which do not match the stated section alignment.  Hence, objcopy
complains.

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20190903/322c4201/attachment.sig>


More information about the freebsd-amd64 mailing list