Commit 8847eeaa authored by Martin Storsjö's avatar Martin Storsjö

aarch64: Add parentheses around the offset parameter in movrel

This fixes building with clang for linux with PIC enabled.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 82989bd9
...@@ -83,8 +83,8 @@ ELF .size \name, . - \name ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment