mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
aarch64: Use the correct syntax for relocations
This fixes building in PIC mode with gas. The examples in the gas manual showed using a # here even though gas itself actually didn't support that syntax (and the gas test suite only tests it without the extra hash sign). CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
962d631573
commit
08cd92144e
@ -58,8 +58,8 @@ ELF .size \name, . - \name
|
||||
|
||||
.macro movrel rd, val
|
||||
#if CONFIG_PIC
|
||||
adrp \rd, #:pg_hi21:\val
|
||||
add \rd, \rd, #:lo12:\val
|
||||
adrp \rd, :pg_hi21:\val
|
||||
add \rd, \rd, :lo12:\val
|
||||
#else
|
||||
ldr \rd, =\val
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user