diff options
author | Peter Smith <peter.smith@linaro.org> | 2019-03-21 17:17:54 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2019-03-21 17:17:54 +0000 |
commit | 54dab70bb75eabe1319fe1b1c94c0930230eb06d (patch) | |
tree | 1e42c4334d20ae66d06812546f2e1473d9c1ec53 /lld/ELF/OutputSections.cpp | |
parent | 47195029414940da30c9f9bfbe6a97ac0d33192a (diff) | |
download | bcm5719-llvm-54dab70bb75eabe1319fe1b1c94c0930230eb06d.tar.gz bcm5719-llvm-54dab70bb75eabe1319fe1b1c94c0930230eb06d.zip |
[ELF][ARM] Revert Redesign of .ARM.exidx handling to use a SyntheticSection
There is a reproducible buildbot failure (segfault) on the 2 stage
clang-cmake-armv8-lld bot. Reverting while I investigate.
Differential Revision: https://reviews.llvm.org/D59216
llvm-svn: 356684
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r-- | lld/ELF/OutputSections.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 4cb5a3cdc59..a7f35ebfc57 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -289,9 +289,7 @@ void OutputSection::finalize() { // SHF_LINK_ORDER flag. The dependency is indicated by the sh_link field. We // need to translate the InputSection sh_link to the OutputSection sh_link, // all InputSections in the OutputSection have the same dependency. - if (auto *EX = dyn_cast<ARMExidxSyntheticSection>(First)) - Link = EX->getLinkOrderDep()->getParent()->SectionIndex; - else if (auto *D = First->getLinkOrderDep()) + if (auto *D = First->getLinkOrderDep()) Link = D->getParent()->SectionIndex; } |