From owner-freebsd-current@freebsd.org Tue Sep 3 19:28:31 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE948D3E19; Tue, 3 Sep 2019 19:28:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46NH735ZK5z4CZC; Tue, 3 Sep 2019 19:28:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 86FF4C24E; Tue, 3 Sep 2019 19:28:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2A88A5313D; Tue, 3 Sep 2019 21:28:30 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_DFDA7815-BF9B-403A-9CBA-F31F24F7EAAA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: amd64 head -r351153 self-built but via devel/llvm90: 'objcopy: elf_update() failed: Layout constraint violation' for gptboot.bin Date: Tue, 3 Sep 2019 21:28:23 +0200 In-Reply-To: <82D7BB4B-14B5-4F6D-A19D-942F4598520E@yahoo.com> Cc: FreeBSD Toolchain , freebsd-current@freebsd.org, freebsd-amd64@freebsd.org To: Mark Millard References: <82D7BB4B-14B5-4F6D-A19D-942F4598520E@yahoo.com> X-Mailer: Apple Mail (2.3445.104.11) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Sep 2019 19:28:31 -0000 --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 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--