diff options
| -rw-r--r-- | compiler-rt/lib/builtins/x86_64/floatundidf.S | 8 | ||||
| -rw-r--r-- | compiler-rt/lib/builtins/x86_64/floatundisf.S | 8 | ||||
| -rw-r--r-- | compiler-rt/lib/builtins/x86_64/floatundixf.S | 12 | 
3 files changed, 22 insertions, 6 deletions
diff --git a/compiler-rt/lib/builtins/x86_64/floatundidf.S b/compiler-rt/lib/builtins/x86_64/floatundidf.S index 65601dc1b76..7c9423193ee 100644 --- a/compiler-rt/lib/builtins/x86_64/floatundidf.S +++ b/compiler-rt/lib/builtins/x86_64/floatundidf.S @@ -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: diff --git a/compiler-rt/lib/builtins/x86_64/floatundisf.S b/compiler-rt/lib/builtins/x86_64/floatundisf.S index fa8177a9071..c840913098c 100644 --- a/compiler-rt/lib/builtins/x86_64/floatundisf.S +++ b/compiler-rt/lib/builtins/x86_64/floatundisf.S @@ -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 diff --git a/compiler-rt/lib/builtins/x86_64/floatundixf.S b/compiler-rt/lib/builtins/x86_64/floatundixf.S index a0e8b179933..6603935e578 100644 --- a/compiler-rt/lib/builtins/x86_64/floatundixf.S +++ b/compiler-rt/lib/builtins/x86_64/floatundixf.S @@ -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:  | 

