Commit fd2981ea authored by Janne Grunau's avatar Janne Grunau

aarch64: add darwin style PAGE/PAGEOFF relocations

parent 880e2aa2
......@@ -57,7 +57,10 @@ ELF .size \name, . - \name
.macro movrel rd, val
#if CONFIG_PIC && defined(__APPLE__)
adrp \rd, \val@PAGE
add \rd, \rd, \val@PAGEOFF
adrp \rd, :pg_hi21:\val
add \rd, \rd, :lo12:\val
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