Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 3b142045 authored by Jessica Clarke's avatar Jessica Clarke Committed by Tom Rini
Browse files

Support building on macOS/arm64


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: default avatarJessica Clarke <jrtc27@jrtc27.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 6863c7f1
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment