This patch adds the assert check inside the constructor for the csect (MCSectionXCOFF) to ensure
valid csect type used for the storage mappping class XCOFF:XMC_UL.
(ST == XCOFF::XTY_SD || ST == XCOFF::XTY_CM || ST == XCOFF::XTY_ER) &&
"Invalid or unhandled type for csect.");
assert(QualName != nullptr && "QualName is needed.");
+ if (SMC == XCOFF::XMC_UL)
+ assert((ST == XCOFF::XTY_CM || ST == XCOFF::XTY_ER) &&
+ "Invalid csect type for storage mapping class XCOFF::XMC_UL");
QualName->setRepresentedCsect(this);
QualName->setStorageClass(XCOFF::C_HIDEXT);