mirror of
https://github.com/gbdev/rgbds.git
synced 2025-12-05 01:07:48 +00:00
RGBLINK lists local symbols when encountering an unknown symbol reference (#1496)
This commit is contained in:
2
test/link/symbols/unknown/a.asm
Normal file
2
test/link/symbols/unknown/a.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
section "a", rom0
|
||||
ld hl, Label
|
||||
2
test/link/symbols/unknown/b.asm
Normal file
2
test/link/symbols/unknown/b.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
section "b", rom0
|
||||
Label:
|
||||
1
test/link/symbols/unknown/c.asm
Normal file
1
test/link/symbols/unknown/c.asm
Normal file
@@ -0,0 +1 @@
|
||||
def Label equ 42
|
||||
1
test/link/symbols/unknown/d.asm
Normal file
1
test/link/symbols/unknown/d.asm
Normal file
@@ -0,0 +1 @@
|
||||
def Label = 123
|
||||
2
test/link/symbols/unknown/e.asm
Normal file
2
test/link/symbols/unknown/e.asm
Normal file
@@ -0,0 +1,2 @@
|
||||
section "e", wram0
|
||||
Label:
|
||||
6
test/link/symbols/unknown/out.err
Normal file
6
test/link/symbols/unknown/out.err
Normal file
@@ -0,0 +1,6 @@
|
||||
error: symbols/unknown/a.asm(2): Unknown symbol "Label"
|
||||
A label with that name is defined but not exported at symbols/unknown/b.asm(2)
|
||||
A constant with that name is defined but not exported at symbols/unknown/c.asm(1)
|
||||
A constant with that name is defined but not exported at symbols/unknown/d.asm(1)
|
||||
...and 1 more symbol with that name is defined but not exported
|
||||
Linking failed with 1 error
|
||||
Reference in New Issue
Block a user