From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sun, 28 Mar 2021 20:29:08 -0400 Subject: [PATCH] Support building on macOS/arm64 In-Reply-To: <20210320204305.82040-1-jrtc27@jrtc27.com> References: <20210320204305.82040-1-jrtc27@jrtc27.com> Message-ID: <20210329002908.GC1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Mar 20, 2021 at 08:43:05PM +0000, Jessica Clarke wrote: > On Arm-based Macs, -no_pie is ignored and gives a linker warning. > Moreover, the build falls over with: > > ld: Absolute addressing not allowed in arm64 code but used in '_image_type_ptr_aisimage' referencing '_image_type_aisimage' > > for dumpimage and mkimage, since we put data structs in text sections > not data sections and so cannot have dynamic relocations. Instead, move > the sections to __DATA and drop disabling PIE. > > Signed-off-by: Jessica Clarke > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: