ref: 5926cc1be3553eddb2da480e5af8814c286a7339
parent: bfbbf1413f958bdf7498d1c960b9bcc0d2d6a2d5
author: Martin Storsjö <[email protected]>
date: Sun Sep 30 18:57:10 EDT 2018
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
--- a/src/arm/64/util.S
+++ b/src/arm/64/util.S
@@ -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