diff options
-rw-r--r-- | libavutil/aarch64/asm.S | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S index 1f9e784cea..b6798c4da1 100644 --- a/libavutil/aarch64/asm.S +++ b/libavutil/aarch64/asm.S @@ -57,7 +57,10 @@ ELF .size \name, . - \name .endm .macro movrel rd, val -#if CONFIG_PIC +#if CONFIG_PIC && defined(__APPLE__) + adrp \rd, \val@PAGE + add \rd, \rd, \val@PAGEOFF +#elif CONFIG_PIC adrp \rd, :pg_hi21:\val add \rd, \rd, :lo12:\val #else |