mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
@@ -337,7 +337,11 @@ static int32_t computeRPNExpr(struct Patch const *patch,
|
||||
|
||||
symbol = getSymbol(fileSymbols, value);
|
||||
|
||||
if (strcmp(symbol->name, "@")) {
|
||||
if (!symbol) {
|
||||
error("%s: Unknown symbol \"%s\"",
|
||||
patch->fileName,
|
||||
fileSymbols[value]->name);
|
||||
} else if (strcmp(symbol->name, "@")) {
|
||||
value = symbol->value;
|
||||
/* Symbols attached to sections have offsets */
|
||||
if (symbol->section)
|
||||
|
||||
3
test/link/sym-noexist.asm
Normal file
3
test/link/sym-noexist.asm
Normal file
@@ -0,0 +1,3 @@
|
||||
SECTION "Test", ROM0
|
||||
jp where
|
||||
dw nothing
|
||||
3
test/link/sym-noexist.out
Normal file
3
test/link/sym-noexist.out
Normal file
@@ -0,0 +1,3 @@
|
||||
error: sym-noexist.asm(3): Unknown symbol "nothing"
|
||||
error: sym-noexist.asm(2): Unknown symbol "where"
|
||||
Linking failed with 2 errors
|
||||
Reference in New Issue
Block a user