diff options
author | Martin Storsjö <martin@martin.st> | 2014-11-16 12:52:21 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-12-09 11:43:31 +0200 |
commit | 780cd20b00a69e26bbfffbb8eec16fbe999ea793 (patch) | |
tree | 38e135ad4dcf20127896cfeb20ad544b4dadb774 /libavutil/aarch64/asm.S | |
parent | f963f80399deb1a2b44c1bac3af7123e8a0c9e46 (diff) | |
download | ffmpeg-780cd20b00a69e26bbfffbb8eec16fbe999ea793.tar.gz |
aarch64: Use .data.rel.ro for const data with relocations
This reverts commit c00365b46d464ce47716315c1801818d811bdb9a
in addition to using a different section.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/aarch64/asm.S')
-rw-r--r-- | libavutil/aarch64/asm.S | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libavutil/aarch64/asm.S b/libavutil/aarch64/asm.S index b766e67d43..6a7f506d13 100644 --- a/libavutil/aarch64/asm.S +++ b/libavutil/aarch64/asm.S @@ -52,12 +52,18 @@ FUNC .func \name .endif .endm -.macro const name, align=2 +.macro const name, align=2, relocate=0 .macro endconst ELF .size \name, . - \name .purgem endconst .endm -#ifndef __MACH__ +#if HAVE_SECTION_DATA_REL_RO +.if \relocate + .section .data.rel.ro +.else + .section .rodata +.endif +#elif !defined(__MACH__) .section .rodata #else .const_data |