aarch64: Add parentheses around the offset parameter in movrel
authorMartin Storsjö <martin@martin.st>
Thu, 16 Feb 2017 07:18:25 +0000 (09:18 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 11 Mar 2017 11:14:50 +0000 (13:14 +0200)
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>
libavutil/aarch64/asm.S

index 523b8c5..4289729 100644 (file)
@@ -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