Fix silent crash failure on warning from linker command line define import size mismatch
This commit is contained in:
committed by
Oliver Schmidt
parent
5da525e0ea
commit
788fbcc9c8
@@ -694,10 +694,15 @@ static void CheckSymType (const Export* E)
|
|||||||
GetString (E->Obj->Name),
|
GetString (E->Obj->Name),
|
||||||
GetSourceName (ExportLI),
|
GetSourceName (ExportLI),
|
||||||
GetSourceLine (ExportLI));
|
GetSourceLine (ExportLI));
|
||||||
} else {
|
} else if (ExportLI) {
|
||||||
SB_Printf (&ExportLoc, "%s(%u)",
|
SB_Printf (&ExportLoc, "%s(%u)",
|
||||||
GetSourceName (ExportLI),
|
GetSourceName (ExportLI),
|
||||||
GetSourceLine (ExportLI));
|
GetSourceLine (ExportLI));
|
||||||
|
} else {
|
||||||
|
/* The export is linker generated and we don't have line
|
||||||
|
** information (likely from command line define)
|
||||||
|
*/
|
||||||
|
SB_Printf (&ExportLoc, "linker");
|
||||||
}
|
}
|
||||||
if (I->Obj) {
|
if (I->Obj) {
|
||||||
/* The import comes from an object file */
|
/* The import comes from an object file */
|
||||||
|
|||||||
Reference in New Issue
Block a user