aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/aarch64
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-02-16 09:18:25 +0200
committerMartin Storsjö <martin@martin.st>2017-03-11 13:14:50 +0200
commitdda45c087b2c09ba9e485c51ff9c8f2aaca709a9 (patch)
tree6c7a28ba9dc8d112026e49353f3f502bc9e13cb2 /libavutil/aarch64
parentc8d6eec85d6a87c9075c87d5eb75af47c964fff8 (diff)
downloadffmpeg-dda45c087b2c09ba9e485c51ff9c8f2aaca709a9.tar.gz
aarch64: Add parentheses around the offset parameter in movrel
This fixes building with clang for linux with PIC enabled. This is cherrypicked from libav commit 8847eeaa141898850381400000fb2b8a7adc7100. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/aarch64')
-rw-r--r--libavutil/aarch64/asm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S
index 523b8c5b4c..4289729428 100644
--- a/libavutil/aarch64/asm.S
+++ b/libavutil/aarch64/asm.S
@@ -83,8 +83,8 @@ ELF .size \name, . - \name
add \rd, \rd, \val+(\offset)@PAGEOFF
.endif
#elif CONFIG_PIC
- adrp \rd, \val+\offset
- add \rd, \rd, :lo12:\val+\offset
+ adrp \rd, \val+(\offset)
+ add \rd, \rd, :lo12:\val+(\offset)
#else
ldr \rd, =\val+\offset
#endif