summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-04-25 21:12:04 +0000
committerTim Northover <tnorthover@apple.com>2016-04-25 21:12:04 +0000
commit5c3140f7458a980af71d9fcea30ee688c7df2831 (patch)
tree3f427246ec2bbc470e28c7be8a54f9f9b50cd812 /llvm/lib/MC/MachObjectWriter.cpp
parent8407f5b3bdc129a795df6b58a03e917a69eb4094 (diff)
downloadbcm5719-llvm-5c3140f7458a980af71d9fcea30ee688c7df2831.tar.gz
bcm5719-llvm-5c3140f7458a980af71d9fcea30ee688c7df2831.zip
ARM: put extern __thread stubs in a special section.
The linker needs to know that the symbols are thread-local to do its job properly. llvm-svn: 267473
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index 2013c253d2d..f33b866e6a5 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/lib/MC/MachObjectWriter.cpp
@@ -457,6 +457,7 @@ void MachObjectWriter::bindIndirectSymbols(MCAssembler &Asm) {
if (Section.getType() != MachO::S_NON_LAZY_SYMBOL_POINTERS &&
Section.getType() != MachO::S_LAZY_SYMBOL_POINTERS &&
+ Section.getType() != MachO::S_THREAD_LOCAL_VARIABLE_POINTERS &&
Section.getType() != MachO::S_SYMBOL_STUBS) {
MCSymbol &Symbol = *it->Symbol;
report_fatal_error("indirect symbol '" + Symbol.getName() +
OpenPOWER on IntegriCloud