aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2014-06-01 15:50:42 +0200
committerJanne Grunau <janne-libav@jannau.net>2014-06-03 14:23:01 +0200
commitfd2981ea92d9a776fcb1a13377dce1c8a7db7b5e (patch)
tree45c120f4d6eff34c7e81b5d815a268dd79af4be5
parent880e2aa23645ed9871c66ee1cbd00f93c72d2d73 (diff)
downloadffmpeg-fd2981ea92d9a776fcb1a13377dce1c8a7db7b5e.tar.gz
aarch64: add darwin style PAGE/PAGEOFF relocations
-rw-r--r--libavutil/aarch64/asm.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S
index 8ac5c180b5..fb635d001f 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