summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/global-sections.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-07-08 21:34:52 +0000
committerBill Wendling <isanbard@gmail.com>2013-07-08 21:34:52 +0000
commit8722e25715f9c56a1f2a03587211f2b0d98b330d (patch)
treecf6b6da1410c426aa97e8400ee2decb11516194a /test/CodeGen/X86/global-sections.ll
parent69097a29ceb14f33d00153ec358afcf6c9d6e90b (diff)
downloadllvm-8722e25715f9c56a1f2a03587211f2b0d98b330d.tar.gz
llvm-8722e25715f9c56a1f2a03587211f2b0d98b330d.tar.bz2
llvm-8722e25715f9c56a1f2a03587211f2b0d98b330d.tar.xz
Stop emitting weak symbols into the "coal" sections.
The Mach-O linker has been able to support the weak-def bit on any symbol for quite a while now. The compiler however continued to place these symbols into a "coal" section, which required the linker to map them back to the base section name. Replace the sections like this: __TEXT/__textcoal_nt instead use __TEXT/__text __TEXT/__const_coal instead use __TEXT/__const __DATA/__datacoal_nt instead use __DATA/__data <rdar://problem/14265330> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/global-sections.ll')
-rw-r--r--test/CodeGen/X86/global-sections.ll7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll
index 194f59765e..f7c136ad10 100644
--- a/test/CodeGen/X86/global-sections.ll
+++ b/test/CodeGen/X86/global-sections.ll
@@ -20,7 +20,7 @@
; TODO: linux drops this into .rodata, we drop it into ".gnu.linkonce.r.G2"
-; DARWIN: .section __TEXT,__const_coal,coalesced
+; DARWIN: .section __TEXT,__const
; DARWIN: _G2:
; DARWIN: .long 42
@@ -70,7 +70,6 @@
; LINUX: .weak foo_20_bar
; LINUX: foo_20_bar:
-; DARWIN: .section __DATA,__datacoal_nt,coalesced
; DARWIN: .globl "_foo bar"
; DARWIN: .weak_definition "_foo bar"
; DARWIN: "_foo bar":
@@ -85,7 +84,7 @@
; LINUX: .byte 1
; LINUX: .size G6, 1
-; DARWIN: .section __TEXT,__const_coal,coalesced
+; DARWIN: .section __TEXT,__const
; DARWIN: .globl _G6
; DARWIN: .weak_definition _G6
; DARWIN:_G6:
@@ -131,7 +130,7 @@
@G10 = weak global [100 x i32] zeroinitializer, align 32 ; <[100 x i32]*> [#uses=0]
-; DARWIN: .section __DATA,__datacoal_nt,coalesced
+; DARWIN: .section __DATA,__data
; DARWIN: .globl _G10
; DARWIN: .weak_definition _G10
; DARWIN: .align 5