]> git.baikalelectronics.ru Git - uboot.git/commit
Support building on macOS/arm64
authorJessica Clarke <jrtc27@jrtc27.com>
Sat, 20 Mar 2021 20:43:05 +0000 (20:43 +0000)
committerTom Rini <trini@konsulko.com>
Sun, 28 Mar 2021 21:30:35 +0000 (17:30 -0400)
commitec1e3d23845c56fec777ee3f66446fea462044a7
treebbe4450a7d04e9a955597acea01988acf61c7205
parentb33bb668f46dd6683508430306318c36bb739cae
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: Jessica Clarke <jrtc27@jrtc27.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Makefile
tools/imagetool.h