On MachO, don't put non-private constants in mergeable sections.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 28 Aug 2014 20:13:31 +0000 (20:13 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 28 Aug 2014 20:13:31 +0000 (20:13 +0000)
commit4bb535027e3c270e32631970e89afdfd2ded9fb1
tree876e98f1b2cb0e9d1373b8cc992cb8dd1cda60b9
parent8317095e976655b297c4a739af5abbe9a772ef8f
On MachO, don't put non-private constants in mergeable sections.

On MachO, putting a symbol that doesn't start with a 'L' or 'l' in one of the
__TEXT,__literal* sections prevents the linker from merging the context of the
section.

Since private GVs are the ones the get mangled to start with 'L' or 'l', we now
only put those on the __TEXT,__literal* sections.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216682 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/X86/global-sections.ll