Tell the user about "label"s instead of "relocatable"s

That's the common term, and even the manual uses it.
This commit is contained in:
ISSOtm
2020-03-07 18:04:13 +01:00
parent f6f25296a0
commit 48ad3973a9
2 changed files with 3 additions and 3 deletions

View File

@@ -177,7 +177,7 @@ void rpn_BankSymbol(struct Expression *expr, char const *tzSym)
rpn_Init(expr);
if (sym && !sym_IsLabel(sym)) {
yyerror("BANK argument must be a relocatable identifier");
yyerror("BANK argument must be a label");
} else {
sym_Ref(tzSym);
/* If the symbol didn't exist, `sym_Ref` created it */

View File

@@ -624,10 +624,10 @@ bool sym_IsRelocDiffDefined(char const *tzSym1, char const *tzSym2)
* coherency with sym_AddReloc and sym_AddLocalReloc).
*/
if (!sym_IsDefined(nsym1))
fatalerror("Relocatable symbol \"%s\" isn't defined.", tzSym1);
fatalerror("Label \"%s\" isn't defined.", tzSym1);
if (!sym_IsDefined(nsym2))
fatalerror("Relocatable symbol \"%s\" isn't defined.", tzSym2);
fatalerror("Label \"%s\" isn't defined.", tzSym2);
/*
* Both of them must be in the same section for the difference to be