forked from OSchip/llvm-project
compiler-rt: prefer .rodata for non MachO targets
Place constants into .rdata if targeting ELF or COFF/PE. This should be functionally identical, however, the data would be placed into a different section. This is purely a cleanup change. llvm-svn: 209986
This commit is contained in:
parent
57aa97f53a
commit
2fd910dc72
|
@ -17,8 +17,12 @@
|
|||
|
||||
#ifdef __x86_64__
|
||||
|
||||
#ifndef __ELF__
|
||||
.const
|
||||
#if defined(__APPLE__)
|
||||
.const
|
||||
#elif defined(__ELF__)
|
||||
.rodata
|
||||
#else
|
||||
.section .rdata,"rd"
|
||||
#endif
|
||||
.balign 4
|
||||
twop52:
|
||||
|
|
|
@ -7,8 +7,12 @@
|
|||
|
||||
#ifdef __x86_64__
|
||||
|
||||
#ifndef __ELF__
|
||||
.literal4
|
||||
#if defined(__APPLE__)
|
||||
.literal4
|
||||
#elif defined(__ELF__)
|
||||
.rodata
|
||||
#else
|
||||
.section .rdata,"rd"
|
||||
#endif
|
||||
two:
|
||||
.single 2.0
|
||||
|
|
|
@ -7,8 +7,12 @@
|
|||
|
||||
#ifdef __x86_64__
|
||||
|
||||
#ifndef __ELF__
|
||||
.const
|
||||
#if defined(__APPLE__)
|
||||
.const
|
||||
#elif defined(__ELF__)
|
||||
.rodata
|
||||
#else
|
||||
.section .rdata,"rd"
|
||||
#endif
|
||||
.balign 4
|
||||
twop64:
|
||||
|
@ -39,6 +43,10 @@ END_COMPILERRT_FUNCTION(__floatundixf)
|
|||
|
||||
#if defined(__APPLE__)
|
||||
.const
|
||||
#elif defined(__ELF__)
|
||||
.rdata
|
||||
#else
|
||||
.section .rdata,"rd"
|
||||
#endif
|
||||
.balign 4
|
||||
twop52:
|
||||
|
|
Loading…
Reference in New Issue