From nobody Mon Jul 15 12:38:22 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WN1vg5r3rz5QrSb; Mon, 15 Jul 2024 12:38:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WN1vg0TCbz4HXG; Mon, 15 Jul 2024 12:38:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721047103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S13OeLFB1bziFVupo7VSLK0q1+7tT0J4t7fuGUN5zEI=; b=yQJm50SIz+rQM1/YJiqaNdcugbOSscCJi0tZ1Q/K7eUjAV9CmlMn+j4BFqvQaNuf/ohN+4 IZSzJHFLeOelWl6lTElblXImxWFGYDzHUysJ9oVXqI7riQt0VGJB6QFLWomUSu/Kkgiab7 9ZuC3ivFkmBk2WAEG+oRyk9JTsOPaU+X+cJ2I5td5BSGmIYbmZ7oJUFhaIetM9sFpFJ6ft Hb2dCywyCLID9/PJaF07cICjy+bKxsdY4HfCvmGMQO/2vZ6B8Zsqfpg80j8Z0xSswbkBvm N0fJU/+APz3FKGUW6g35C8m84YoFD+CoS8c1NgSskL+ScdLCidV2uZI3gwvDPA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721047103; a=rsa-sha256; cv=none; b=oqwAXjg9jTZU25t/YJKRBS0SnL9XON/83X+ROkzwq5jjDerLNV2XKKirWy9xgtQFdmSO/D 7jlVzp4Uv0OAm2Bd2aP6HNlv7hc4BSnbvejjDOqG0d9CN1R5xau2Xk3r7EAjBnSSfSEr2D 0MZWx2hyFQ81pFmZ3C12gKCdXagZOpD2M0MyJ1spTH7oH1hFo9kysN6cRXFGI0TcO5bfPH KgbIYxPybwQoJvIRTlXpA7RivA6YMRUIXPxRlhntz846joHciyXZOxc6ITcPjZ3sNK8Dzz RHnq4T80oHC2QjcXIwSTSNKJsZxCUW64T1Qoy9L6USOLX4ICM+Ax0RBcs3xbWg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721047103; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S13OeLFB1bziFVupo7VSLK0q1+7tT0J4t7fuGUN5zEI=; b=iEZ7QjCrIMYJf3ygeyO1QIbgwd3rSt6uYmAE5CsJsDPu4H/IOxCR4B//8g8HB99KNPn69e SrWi3TjIRDi4LnKC4O0W89TXADre/edg9oatGMBElEj3z0Piu2/Y3Sme6TMUIHR9oTiv6v GYSgXYBVfk/v5IOBJ5RzvmCUeh4JPL+0iSYUjwMBuunTja9g7dOSieGyiYEZdcPN0MVgsW 8OG5A1BIc5pUwhY398oEFzM99BNO510d2ICfca3hP7oYOTrBRcIXv5uarDXKs2D6r04lw7 pL6MJwDOzodv2DkVV2Hkth1M0LVb7K+oA2t1yrkAdlG2Bt8q7gta+CReHOwQvw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WN1vg05WSzt3H; Mon, 15 Jul 2024 12:38:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46FCcMEU061081; Mon, 15 Jul 2024 12:38:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46FCcMwk061077; Mon, 15 Jul 2024 12:38:22 GMT (envelope-from git) Date: Mon, 15 Jul 2024 12:38:22 GMT Message-Id: <202407151238.46FCcMwk061077@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Andrew Turner Subject: git: 7d8cb4115996 - stable/13 - stand/efi: Fix for binutils when targeting arm64 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7d8cb4115996cc46907f49c637a6599e0f14a2ed Auto-Submitted: auto-generated The branch stable/13 has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=7d8cb4115996cc46907f49c637a6599e0f14a2ed commit 7d8cb4115996cc46907f49c637a6599e0f14a2ed Author: Andrew Turner AuthorDate: 2024-05-22 08:17:26 +0000 Commit: Andrew Turner CommitDate: 2024-07-15 12:34:29 +0000 stand/efi: Fix for binutils when targeting arm64 When linking with ld.bfd it complain with the following: /usr/local/bin/aarch64-unknown-freebsd14.0-ld: start.o: relocation R_AARCH64_ABS32 against `__data_size' can not be used when making a shared object Fix this by marking the __data_size with ABSOLUTE. This returns a non-relocatable value which appears to be the same behaviour of lld. Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45257 (cherry picked from commit 9f44638ef2c46861565b89bb01bbeeab17755649) --- stand/efi/loader/arch/arm64/ldscript.arm64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/efi/loader/arch/arm64/ldscript.arm64 b/stand/efi/loader/arch/arm64/ldscript.arm64 index bacb81b5032f..c6af9f48bd12 100644 --- a/stand/efi/loader/arch/arm64/ldscript.arm64 +++ b/stand/efi/loader/arch/arm64/ldscript.arm64 @@ -79,7 +79,7 @@ SECTIONS . = ALIGN(16); .dynsym : { *(.dynsym) } _edata = .; - __data_size = . - __data_start; + __data_size = ABSOLUTE(. - __data_start); /* Unused sections */ .interp : { *(.interp) }