diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-03 19:30:24 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-03 20:02:42 +0400 |
commit | ab9afcdf0483925b492fc590c383c866e1f1dc31 (patch) | |
tree | 6430ec475b7e850a9ae63b4f2357513c2f9fae8d | |
parent | a4ed51ab40878daf8b2128bbcbf7a6d7b4d41649 (diff) | |
parent | fd2981ea92d9a776fcb1a13377dce1c8a7db7b5e (diff) |
Merge commit 'fd2981ea92d9a776fcb1a13377dce1c8a7db7b5e'
* commit 'fd2981ea92d9a776fcb1a13377dce1c8a7db7b5e':
aarch64: add darwin style PAGE/PAGEOFF relocations
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-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 |