summaryrefslogtreecommitdiffstats
path: root/lld/ELF/OutputSections.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-11-09 17:44:10 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-11-09 17:44:10 +0000
commit8ea46e00f1ec1f5ebf3fdabaff3759ac542d2ca8 (patch)
treea6018979d8542917d3f69d5fdc18d7465399e061 /lld/ELF/OutputSections.cpp
parent3656e3064b54f00ee884fc36120bcb25673233af (diff)
downloadbcm5719-llvm-8ea46e00f1ec1f5ebf3fdabaff3759ac542d2ca8.tar.gz
bcm5719-llvm-8ea46e00f1ec1f5ebf3fdabaff3759ac542d2ca8.zip
Start treating .eh_frame specially.
For now, just don't follow edges leaving from it to mark other sections live. llvm-svn: 252493
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 cfd6133cfee..0a6c33c1d02 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -707,7 +707,7 @@ lld::elf2::getLocalRelTarget(const ObjectFile<ELFT> &File,
// and must be treated specially. For now we just replace the symbol with
// 0.
InputSectionBase<ELFT> *Section = File.getSection(*Sym);
- if (Section == &InputSection<ELFT>::Discarded)
+ if (Section == &InputSection<ELFT>::Discarded || !Section->isLive())
return Addend;
uintX_t VA = Section->OutSec->getVA();
OpenPOWER on IntegriCloud