mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-22 13:47:05 +00:00
Fix underflowing SECTION FRAGMENT fixed address in RGBLINK (#2122)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
SECTION FRAGMENT "f", ROM0
|
||||
ds 32, 0
|
||||
@@ -0,0 +1,2 @@
|
||||
SECTION FRAGMENT "f", ROM0[$10]
|
||||
db 42
|
||||
@@ -0,0 +1,5 @@
|
||||
FATAL: Section "f" contains 32 bytes, but is also defined with a lower fixed address $0010
|
||||
at section-fragment/org-beyond-size/a.asm(1)
|
||||
and also:
|
||||
at section-fragment/org-beyond-size/b.asm(1)
|
||||
Linking aborted with 1 error
|
||||
@@ -417,6 +417,15 @@ rgblinkQuiet -o "$gbtemp" "$otemp" "$gbtemp2"
|
||||
tryCmpRom "$test"/ref.out.bin
|
||||
evaluateTest
|
||||
|
||||
test="section-fragment/org-beyond-size"
|
||||
startTest
|
||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||
"$RGBASM" -o "$gbtemp" "$test"/b.asm
|
||||
continueTest
|
||||
rgblinkQuiet "$otemp" "$gbtemp" 2>"$outtemp"
|
||||
tryDiff "$test"/out.err "$outtemp"
|
||||
evaluateTest
|
||||
|
||||
test="section-normal/same-name"
|
||||
startTest
|
||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||
|
||||
Reference in New Issue
Block a user