diff options
author | Martin Storsjö <martin@martin.st> | 2014-11-16 12:51:54 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2014-12-09 11:43:25 +0200 |
commit | f963f80399deb1a2b44c1bac3af7123e8a0c9e46 (patch) | |
tree | 8d0a9e61779857e987d90fa492c93350ada93bf3 /libavutil | |
parent | 3c01039e0bc7d269900e15551f8171c4328a0223 (diff) | |
download | ffmpeg-f963f80399deb1a2b44c1bac3af7123e8a0c9e46.tar.gz |
arm: Use .data.rel.ro for const data with relocations
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/arm/asm.S | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index 93d74b65e1..8479304f5f 100644 --- a/libavutil/arm/asm.S +++ b/libavutil/arm/asm.S @@ -89,12 +89,16 @@ 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 +.if HAVE_SECTION_DATA_REL_RO && \relocate + .section .data.rel.ro +.else .section .rodata +.endif .align \align \name: .endm |