Commit 5926cc1b authored by Martin Storsjö's avatar Martin Storsjö Committed by Henrik Gramner

aarch64: Always use the PIC version of movrel for iOS

Building without PIC isn't allowed for iOS.

This fixes linker errors like these:
ld: Absolute addressing not allowed in arm64 code but used in '_checkasm_checked_call' referencing 'error_message' for architecture arm64
parent bfbbf141
......@@ -33,7 +33,7 @@
#include "src/arm/asm.S"
.macro movrel rd, val, offset=0
#if defined(PIC) && defined(__APPLE__)
#if defined(__APPLE__)
.if \offset < 0
adrp \rd, \val@PAGE
add \rd, \rd, \val@PAGEOFF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment