arm: Produce .const_data instead of .section .rodata for Mach-O
This is the same combination of .section directives as used in aarch64/asm.S. Since Xcode 9.3, the bundled clang supports altmacro and doesn't require using gas-preprocessor any longer. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
@@ -111,11 +111,17 @@ FUNC .func \name
|
|||||||
ELF .size \name, . - \name
|
ELF .size \name, . - \name
|
||||||
.purgem endconst
|
.purgem endconst
|
||||||
.endm
|
.endm
|
||||||
.if HAVE_SECTION_DATA_REL_RO && \relocate
|
#if HAVE_SECTION_DATA_REL_RO
|
||||||
|
.if \relocate
|
||||||
.section .data.rel.ro
|
.section .data.rel.ro
|
||||||
.else
|
.else
|
||||||
.section .rodata
|
.section .rodata
|
||||||
.endif
|
.endif
|
||||||
|
#elif !defined(__MACH__)
|
||||||
|
.section .rodata
|
||||||
|
#else
|
||||||
|
.const_data
|
||||||
|
#endif
|
||||||
.align \align
|
.align \align
|
||||||
\name:
|
\name:
|
||||||
.endm
|
.endm
|
||||||
|
|||||||
Reference in New Issue
Block a user