Browse Source

aarch64: add darwin style PAGE/PAGEOFF relocations

tags/n2.3
Janne Grunau 11 years ago
parent
commit
fd2981ea92
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      libavutil/aarch64/asm.S

+ 4
- 1
libavutil/aarch64/asm.S 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


Loading…
Cancel
Save