summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-02-01 01:31:36 +0000
committerMatthias Braun <matze@braunis.de>2017-02-01 01:31:36 +0000
commit8d115a384c83c01286d9aa82b0dcb83401e89741 (patch)
tree542f5159bf36b55a14ad19f396fa5272bbeb1c38 /llvm/lib/MC
parent926883e1c2a39baabc67cfd5ec0d913c9851af68 (diff)
downloadbcm5719-llvm-8d115a384c83c01286d9aa82b0dcb83401e89741.tar.gz
bcm5719-llvm-8d115a384c83c01286d9aa82b0dcb83401e89741.zip
MCMacho: Allow __thread_ptr section after dwarf sections
Differential Revision: https://reviews.llvm.org/D29315 llvm-svn: 293730
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 45a497240b4..bd425bb7309 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -142,7 +142,8 @@ static bool canGoAfterDWARF(const MCSectionMachO &MSec) {
if (SegName == "__TEXT" && SecName == "__eh_frame")
return true;
- if (SegName == "__DATA" && SecName == "__nl_symbol_ptr")
+ if (SegName == "__DATA" && (SecName == "__nl_symbol_ptr" ||
+ SecName == "__thread_ptr"))
return true;
return false;
OpenPOWER on IntegriCloud