From 2f533ed85f2abbfa04c44b553be9a5ad12602093 Mon Sep 17 00:00:00 2001 From: Renato Golin Date: Tue, 26 Apr 2016 10:02:02 +0000 Subject: [PATCH] Revert "ARM: put correct symbol index on indirect pointers in __thread_ptr." This reverts commit r267488, as it broke some ARM buildbots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267541 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MachObjectWriter.cpp | 3 +-- test/MC/ARM/tls-directives.s | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index e39271949d9..f33b866e6a5 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -471,8 +471,7 @@ void MachObjectWriter::bindIndirectSymbols(MCAssembler &Asm) { ie = Asm.indirect_symbol_end(); it != ie; ++it, ++IndirectIndex) { const MCSectionMachO &Section = cast(*it->Section); - if (Section.getType() != MachO::S_NON_LAZY_SYMBOL_POINTERS && - Section.getType() != MachO::S_THREAD_LOCAL_VARIABLE_POINTERS) + if (Section.getType() != MachO::S_NON_LAZY_SYMBOL_POINTERS) continue; // Initialize the section indirect symbol base, if necessary. diff --git a/test/MC/ARM/tls-directives.s b/test/MC/ARM/tls-directives.s index 69a02689289..c0e9f6cc142 100644 --- a/test/MC/ARM/tls-directives.s +++ b/test/MC/ARM/tls-directives.s @@ -1,9 +1,5 @@ @ RUN: llvm-mc -triple thumbv7-apple-ios -filetype=obj -o %t %s -@ RUN: llvm-objdump -macho -p -indirect-symbols %t | FileCheck %s - -@ CHECK: Indirect symbols for (__DATA,__thread_ptr) -@ CHECK: 0x0000001c 5 _a - +@ RUN: llvm-objdump -p %t | FileCheck %s @ CHECK: sectname __thread_data @ CHECK: segname __DATA -- 2.11.0