forked from OSchip/llvm-project
Fix: added assert condition to EhFrameHeader<ELFT>::assignEhFrame().
Thanks to David Blaikie who found that issue. llvm-svn: 258707
This commit is contained in:
parent
2531584daa
commit
45ca88dbdf
|
|
@ -861,8 +861,8 @@ template <class ELFT> void EhFrameHeader<ELFT>::writeTo(uint8_t *Buf) {
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
void EhFrameHeader<ELFT>::assignEhFrame(EHOutputSection<ELFT> *Sec) {
|
void EhFrameHeader<ELFT>::assignEhFrame(EHOutputSection<ELFT> *Sec) {
|
||||||
if (this->Sec && this->Sec != Sec)
|
assert((!this->Sec || this->Sec == Sec) &&
|
||||||
assert("multiple .eh_frame sections not supported for .eh_frame_hdr");
|
"multiple .eh_frame sections not supported for .eh_frame_hdr");
|
||||||
Live = Config->EhFrameHdr;
|
Live = Config->EhFrameHdr;
|
||||||
this->Sec = Sec;
|
this->Sec = Sec;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue