summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-04-26 18:29:16 +0000
committerTim Northover <tnorthover@apple.com>2016-04-26 18:29:16 +0000
commit4397837be2456454ef87fc5f56a791273acd4c3f (patch)
tree1e2e758c6732a3a3e5b3e2bdf6db5661ee3d25d1 /llvm/lib/MC/MachObjectWriter.cpp
parent4d0dcb98918f65d0465e704578547913b61a8ddd (diff)
downloadbcm5719-llvm-4397837be2456454ef87fc5f56a791273acd4c3f.tar.gz
bcm5719-llvm-4397837be2456454ef87fc5f56a791273acd4c3f.zip
Reapply: "ARM: put correct symbol index on indirect pointers in __thread_ptr.""
A latent bug in llvm-objdump used the wrong format specifier on 32-bit targets, causing the test to fail. This fixes the issue. llvm-svn: 267582
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index f33b866e6a5..e39271949d9 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/lib/MC/MachObjectWriter.cpp
@@ -471,7 +471,8 @@ void MachObjectWriter::bindIndirectSymbols(MCAssembler &Asm) {
ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) {
const MCSectionMachO &Section = cast<MCSectionMachO>(*it->Section);
- if (Section.getType() != MachO::S_NON_LAZY_SYMBOL_POINTERS)
+ if (Section.getType() != MachO::S_NON_LAZY_SYMBOL_POINTERS &&
+ Section.getType() != MachO::S_THREAD_LOCAL_VARIABLE_POINTERS)
continue;
// Initialize the section indirect symbol base, if necessary.
OpenPOWER on IntegriCloud