summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/COFF/Chunks.h6
-rw-r--r--lld/test/COFF/reloc-discarded-dwarf.s2
2 files changed, 6 insertions, 2 deletions
diff --git a/lld/COFF/Chunks.h b/lld/COFF/Chunks.h
index e93737399bb..e81b89240e0 100644
--- a/lld/COFF/Chunks.h
+++ b/lld/COFF/Chunks.h
@@ -186,8 +186,10 @@ public:
return SectionName == ".debug" || SectionName.startswith(".debug$");
}
- // True if this is a DWARF debug info chunk.
- bool isDWARF() const { return SectionName.startswith(".debug_"); }
+ // True if this is a DWARF debug info or exception handling chunk.
+ bool isDWARF() const {
+ return SectionName.startswith(".debug_") || SectionName == ".eh_frame";
+ }
// Allow iteration over the bodies of this chunk's relocated symbols.
llvm::iterator_range<symbol_iterator> symbols() const {
diff --git a/lld/test/COFF/reloc-discarded-dwarf.s b/lld/test/COFF/reloc-discarded-dwarf.s
index d779d2f5b8f..14dc5948b32 100644
--- a/lld/test/COFF/reloc-discarded-dwarf.s
+++ b/lld/test/COFF/reloc-discarded-dwarf.s
@@ -13,3 +13,5 @@ f:
.section .debug_info,"dr"
.quad f
+ .section .eh_frame,"dr"
+ .quad f
OpenPOWER on IntegriCloud