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>
pull/273/head
Martin Storsjö 8 years ago
parent 82989bd98c
commit 8847eeaa14
  1. 4
      libavutil/aarch64/asm.S

@ -83,8 +83,8 @@ ELF .size \name, . - \name
add \rd, \rd, \val+(\offset)@PAGEOFF add \rd, \rd, \val+(\offset)@PAGEOFF
.endif .endif
#elif CONFIG_PIC #elif CONFIG_PIC
adrp \rd, \val+\offset adrp \rd, \val+(\offset)
add \rd, \rd, :lo12:\val+\offset add \rd, \rd, :lo12:\val+(\offset)
#else #else
ldr \rd, =\val+\offset ldr \rd, =\val+\offset
#endif #endif

Loading…
Cancel
Save