Date: Tue, 03 Sep 2019 19:28:31 -0000 From: Dimitry Andric <dim@FreeBSD.org> To: Mark Millard <marklmi@yahoo.com> Cc: FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, freebsd-current@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: amd64 head -r351153 self-built but via devel/llvm90: 'objcopy: elf_update() failed: Layout constraint violation' for gptboot.bin Message-ID: <C489109B-44F3-4058-BE29-199A940691E5@FreeBSD.org> In-Reply-To: <82D7BB4B-14B5-4F6D-A19D-942F4598520E@yahoo.com> References: <82D7BB4B-14B5-4F6D-A19D-942F4598520E@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_DFDA7815-BF9B-403A-9CBA-F31F24F7EAAA Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 17 Aug 2019, at 05:33, Mark Millard <marklmi@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 --Apple-Mail=_DFDA7815-BF9B-403A-9CBA-F31F24F7EAAA Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXW6+1wAKCRCwXqMKLiCW oy+qAKCzp0cZKbF+RX81pMaRxU/HBAfC0QCeNzOvc1cxEhcBEh2jgkenkxRT+fo= =l/IB -----END PGP SIGNATURE----- --Apple-Mail=_DFDA7815-BF9B-403A-9CBA-F31F24F7EAAA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C489109B-44F3-4058-BE29-199A940691E5>