forked from OSchip/llvm-project
builtins: make the x86_64 compatible with GAS
The .rodata directive was added on the IA-64 (Itanium) platform. The LLVM IAS supports the .rodata on i386 and x86_64 as well. There is no reason to really restrict compilation of the builtins to just clang. By explicitly indicating that the data is meant to be pushed into the .rodata section via the .section .rodata, the assembly is made compatible with clang and gcc (with GAS). This will enable building these routines on the Linux buildbots via CMake. llvm-svn: 214012
This commit is contained in:
parent
5896698e2e
commit
93efc78a04
|
@ -20,7 +20,7 @@
|
|||
#if defined(__APPLE__)
|
||||
.const
|
||||
#elif defined(__ELF__)
|
||||
.rodata
|
||||
.section .rodata
|
||||
#else
|
||||
.section .rdata,"rd"
|
||||
#endif
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#if defined(__APPLE__)
|
||||
.literal4
|
||||
#elif defined(__ELF__)
|
||||
.rodata
|
||||
.section .rodata
|
||||
#else
|
||||
.section .rdata,"rd"
|
||||
#endif
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#if defined(__APPLE__)
|
||||
.const
|
||||
#elif defined(__ELF__)
|
||||
.rodata
|
||||
.section .rodata
|
||||
#else
|
||||
.section .rdata,"rd"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue