aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2017-02-16 09:18:25 +0200
committerMartin Storsjö <martin@martin.st>2017-02-16 09:56:11 +0200
commit8847eeaa141898850381400000fb2b8a7adc7100 (patch)
tree18b1c88d7464fa45caa83b0a58a14c195926cc7f
parent82989bd98c7f4e87f59af2147b645b8fd8f31c53 (diff)
downloadffmpeg-8847eeaa141898850381400000fb2b8a7adc7100.tar.gz
aarch64: Add parentheses around the offset parameter in movrel
This fixes building with clang for linux with PIC enabled. Signed-off-by: Martin Storsjö <martin@martin.st>
-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 0fc649ad0e..86d36cd57f 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