aarch64: Use .data.rel.ro for const data with relocations

This reverts commit c00365b46d
in addition to using a different section.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö
2014-11-16 12:52:21 +02:00
parent f963f80399
commit 780cd20b00
3 changed files with 35 additions and 30 deletions
+8 -2
View File
@@ -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