aarch64: add darwin style PAGE/PAGEOFF relocations

This commit is contained in:
Janne Grunau 2014-06-01 15:50:42 +02:00
parent 880e2aa236
commit fd2981ea92

View File

@ -57,7 +57,10 @@ ELF .size \name, . - \name
.endm
.macro movrel rd, val
#if CONFIG_PIC
#if CONFIG_PIC && defined(__APPLE__)
adrp \rd, \val@PAGE
add \rd, \rd, \val@PAGEOFF
#elif CONFIG_PIC
adrp \rd, :pg_hi21:\val
add \rd, \rd, :lo12:\val
#else