MachO: allow each section to have a linker-private symbol
authorTim Northover <tnorthover@apple.com>
Sat, 29 Mar 2014 07:05:06 +0000 (07:05 +0000)
committerTim Northover <tnorthover@apple.com>
Sat, 29 Mar 2014 07:05:06 +0000 (07:05 +0000)
commitc3988b4aa3d2d9675fc75a221f5d1c3b64cfcd9b
tree6019822b28a28dceb9a6b999a19af95930365ff5
parent9086f061f0f97f2b2b5f9b943d5a01e54646aa92
MachO: allow each section to have a linker-private symbol

The upcoming ARM64 backend doesn't have section-relative relocations,
so we give each section its own symbol to provide this functionality.
Of course, it doesn't need to appear in the final executable, so
linker-private is the best kind for this purpose.

llvm-svn: 205081
llvm/include/llvm/MC/MCAsmInfo.h
llvm/include/llvm/MC/MCContext.h
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/MC/MCAsmInfo.cpp
llvm/lib/MC/MCContext.cpp
llvm/lib/MC/MCMachOStreamer.cpp