summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-04-22 16:39:59 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-04-22 16:39:59 +0000
commit197d6a882f434653b8a254e7ef54e6b3f6f26542 (patch)
tree548cacfc2fefba3a8922de86209d9b4f86ca0892 /lld/ELF/OutputSections.cpp
parente2c64057089bb597fccd178a2baff353504d4150 (diff)
downloadbcm5719-llvm-197d6a882f434653b8a254e7ef54e6b3f6f26542.tar.gz
bcm5719-llvm-197d6a882f434653b8a254e7ef54e6b3f6f26542.zip
This reverts commit r267154 and r267161.
It turns out that this will read data from the section to properly handle Elf_Rel implicit addends. Sorry for the noise. Original messages: Try to fix Windows lld build. Move getRelocTarget to ObjectFile. It doesn't use anything from the InputSection. llvm-svn: 267163
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r--lld/ELF/OutputSections.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 2f3707605d1..9052aec88f8 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -1132,7 +1132,7 @@ void EHOutputSection<ELFT>::addSectionAux(EHInputSection<ELFT> *S,
} else {
if (!HasReloc)
fatal("FDE doesn't reference another section");
- InputSectionBase<ELFT> *Target = S->getFile()->getRelocTarget(*RelI);
+ InputSectionBase<ELFT> *Target = S->getRelocTarget(*RelI);
if (Target && Target->Live) {
uint32_t CieOffset = Offset + 4 - ID;
auto I = OffsetToIndex.find(CieOffset);
OpenPOWER on IntegriCloud