*/
if (ObjHasFiles (I->Obj)) {
const LineInfo* LI = GetImportPos (I);
- Error ("Invalid import size in for `%s', imported from %s(%u): 0x%02X",
+ Error ("Invalid import size in for '%s', imported from %s(%u): 0x%02X",
GetString (I->Name),
GetSourceName (LI),
GetSourceLine (LI),
I->AddrSize);
} else {
- Error ("Invalid import size in for `%s', imported from %s: 0x%02X",
+ Error ("Invalid import size in for '%s', imported from %s: 0x%02X",
GetString (I->Name),
GetObjFileName (I->Obj),
I->AddrSize);
/* We have no object file information and no line info for a new
** import
*/
- Error ("Invalid import size 0x%02X for symbol `%s'",
+ Error ("Invalid import size 0x%02X for symbol '%s'",
I->AddrSize,
GetString (I->Name));
}
Imp->Exp = E;
Imp = Imp->Next;
}
- } else {
- /* Duplicate entry, ignore it */
- Warning ("Duplicate external identifier: `%s'",
- GetString (L->Name));
+ } else if (AllowMultDef == 0) {
+ /* Duplicate entry, this is fatal unless allowed by the user */
+ Error ("Duplicate external identifier: '%s'",
+ GetString (L->Name));
}
return;
}
{
if (E->Expr == 0) {
/* OOPS */
- Internal ("`%s' is an undefined external", GetString (E->Name));
+ Internal ("'%s' is an undefined external", GetString (E->Name));
}
return GetExprVal (E->Expr);
}
}
/* Output the diagnostic */
- Warning ("Address size mismatch for `%s': "
- "Exported from %s as `%s', "
- "import in %s as `%s'",
+ Warning ("Address size mismatch for '%s': "
+ "Exported from %s as '%s', "
+ "import in %s as '%s'",
GetString (E->Name),
SB_GetConstBuf (&ExportLoc),
ExpAddrSize,
/* Unresolved external */
Import* Imp = E->ImpList;
fprintf (stderr,
- "Unresolved external `%s' referenced in:\n",
+ "Unresolved external '%s' referenced in:\n",
GetString (E->Name));
while (Imp) {
unsigned J;
/* Print an error about a circular reference using to define the given export */
{
const LineInfo* LI = GetExportPos (E);
- Error ("Circular reference for symbol `%s', %s(%u)",
+ Error ("Circular reference for symbol '%s', %s(%u)",
GetString (E->Name),
GetSourceName (LI),
GetSourceLine (LI));