Stop emitting weak symbols into the "coal" sections.
authorBill Wendling <isanbard@gmail.com>
Mon, 8 Jul 2013 21:34:52 +0000 (21:34 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 8 Jul 2013 21:34:52 +0000 (21:34 +0000)
commit8722e25715f9c56a1f2a03587211f2b0d98b330d
treecf6b6da1410c426aa97e8400ee2decb11516194a
parent69097a29ceb14f33d00153ec358afcf6c9d6e90b
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
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/X86/global-sections.ll
test/CodeGen/X86/no-coal-sections.ll [new file with mode: 0644]