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>
Thu, 16 Feb 2017 07:56:11 +0000 (09:56 +0200)
This fixes building with clang for linux with PIC enabled.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/aarch64/asm.S

index 0fc649a..86d36cd 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