diff options
Diffstat (limited to 'lld/ELF/SyntheticSections.cpp')
| -rw-r--r-- | lld/ELF/SyntheticSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index 3eebc4e7862..a42d1587cee 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1704,7 +1704,7 @@ readCuList(DWARFContext &Dwarf, InputSection *Sec) { static InputSectionBase *findSection(ArrayRef<InputSectionBase *> Arr, uint64_t Offset) { for (InputSectionBase *S : Arr) - if (S && S != &InputSection::Discarded) + if (S && S != &InputSection::Discarded && S->Live) if (Offset >= S->getOffsetInFile() && Offset < S->getOffsetInFile() + S->getSize()) return S; |

