aarch64: Add parentheses around the offset parameter in movrel

Message ID 1487229547-24719-1-git-send-email-martin@martin.st
State Committed
Commit 8847eeaa141898850381400000fb2b8a7adc7100
Headers show

Commit Message

Martin Storsjö Feb. 16, 2017, 7:19 a.m.
This fixes building with clang for linux with PIC enabled.
---
 libavutil/aarch64/asm.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Diego Biurrun Feb. 16, 2017, 7:36 a.m. | #1
On Thu, Feb 16, 2017 at 09:19:07AM +0200, Martin Storsjö wrote:
> This fixes building with clang for linux with PIC enabled.
> ---
>  libavutil/aarch64/asm.S | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

probably OK

Diego

Patch

diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S
index 0fc649a..86d36cd 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