ld65: implement '--allow-multiple-definition' command line parameter

This commit is contained in:
Christian Groessler
2019-04-30 16:20:22 +02:00
committed by Oliver Schmidt
parent c248c14075
commit 5a05acf936
4 changed files with 49 additions and 36 deletions

View File

@@ -481,8 +481,8 @@ void InsertExport (Export* E)
Imp->Exp = E;
Imp = Imp->Next;
}
} else {
/* Duplicate entry, this is fatal */
} else if (AllowMultDef == 0) {
/* Duplicate entry, this is fatal unless allowed by the user */
Error ("Duplicate external identifier: '%s'",
GetString (L->Name));
}