diff options
-rw-r--r-- | lld/ELF/OutputSections.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index e18eb15e156..f6f5d96d974 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -863,11 +863,8 @@ template <class ELFT> void EhFrameHeader<ELFT>::writeTo(uint8_t *Buf) { template <class ELFT> void EhFrameHeader<ELFT>::assignEhFrame(EHOutputSection<ELFT> *Sec) { - if (this->Sec && this->Sec != Sec) { - warning("multiple .eh_frame sections not supported for .eh_frame_hdr"); - Live = false; - return; - } + if (this->Sec && this->Sec != Sec) + llvm_unreachable("multiple .eh_frame sections not supported for .eh_frame_hdr"); Live = Config->EhFrameHdr; this->Sec = Sec; } |