From 8847eeaa141898850381400000fb2b8a7adc7100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 16 Feb 2017 09:18:25 +0200 Subject: [PATCH] aarch64: Add parentheses around the offset parameter in movrel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes building with clang for linux with PIC enabled. Signed-off-by: Martin Storsjö --- libavutil/aarch64/asm.S | 4 ++-- 1 file 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