Fix local sym names not being expanded by PURGE

And an additional bug that broke the attached test
This commit is contained in:
ISSOtm
2020-05-03 19:06:48 +02:00
parent 12693081c9
commit c135e2c6a0
5 changed files with 19 additions and 2 deletions

8
test/asm/local-purge.asm Normal file
View File

@@ -0,0 +1,8 @@
; At some point, the name of the local label was passed *unexpanded* to the
; function doing the removal. Ensure that this is fixed.
SECTION "Test", ROM0[0]
Glob:
.loc
PURGE .loc
PRINTT "{.loc}\n" ; This should fail because the label doesn't exist anymore