diff options
author | Jessica Clarke <jrtc27@jrtc27.com> | 2021-03-20 20:43:05 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-28 17:30:35 -0400 |
commit | 3b142045e8a7f0ab17b6099e9226296af45967d0 (patch) | |
tree | bbe4450a7d04e9a955597acea01988acf61c7205 /Makefile | |
parent | 6863c7f1b633d50e025ce34ad249b59a14c99b2a (diff) | |
download | u-boot-3b142045e8a7f0ab17b6099e9226296af45967d0.tar.gz |
Support building on macOS/arm64WIP/2021-03-28-assorted-bugfixes
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -324,11 +324,6 @@ HOSTCC = $(call os_x_before, 10, 5, "cc", "gcc") KBUILD_HOSTCFLAGS += $(call os_x_before, 10, 4, "-traditional-cpp") KBUILD_HOSTLDFLAGS += $(call os_x_before, 10, 5, "-multiply_defined suppress") -# since Lion (10.7) ASLR is on by default, but we use linker generated lists -# in some host tools which is a problem then ... so disable ASLR for these -# tools -KBUILD_HOSTLDFLAGS += $(call os_x_before, 10, 7, "", "-Xlinker -no_pie") - # macOS Mojave (10.14.X) # Undefined symbols for architecture x86_64: "_PyArg_ParseTuple" KBUILD_HOSTLDFLAGS += $(call os_x_after, 10, 14, "-lpython -dynamclib", "") |