[PATCH] Support building on macOS/arm64
Tom Rini
trini at konsulko.com
Mon Mar 22 21:35:22 CET 2021
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 <jrtc27 at jrtc27.com>
Looking at this, and throwing CI at it to make sure everything is fine
elsewhere, this looks good and I'll pick it up for this release.
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210322/7d58e177/attachment.sig>
More information about the U-Boot
mailing list