Re: amd64 head -r351153 self-built but via devel/llvm90: 'objcopy: elf_update() failed: Layout constraint violation' for gptboot.bin
Dimitry Andric <[email protected]> Tue, 3 Sep 2019 21:28:23 +0200
| Newsgroups | gmane.os.freebsd.devel.toolchain,gmane.os.freebsd.devel.amd64,gmane.os.freebsd.current |
|---|---|
| Message-ID | <[email protected]> |
On 17 Aug 2019, at 05:33, Mark Millard <[email protected]> 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
signature.asc
(application/pgp-signature, 223 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXW6+1wAKCRCwXqMKLiCW oy+qAKCzp0cZKbF+RX81pMaRxU/HBAfC0QCeNzOvc1cxEhcBEh2jgkenkxRT+fo= =l/IB -----END PGP SIGNATURE-----