mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-22 14:54:33 +00:00
Fix large ds in linker script overflowing the PC
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
section "foo", rom0
|
||||
Foo:: dw Foo
|
||||
@@ -0,0 +1,2 @@
|
||||
section "bar", rom0
|
||||
Bar:: dw Bar
|
||||
@@ -0,0 +1,3 @@
|
||||
error: Cannot increase the current address by 4294967280 bytes: only 12286 bytes to $4000
|
||||
at script-ds/script.link(4)
|
||||
Linking failed with 1 error
|
||||
@@ -0,0 +1,5 @@
|
||||
ROM0
|
||||
org $1000
|
||||
"foo"
|
||||
ds $ffff_fff0
|
||||
"bar"
|
||||
@@ -322,6 +322,15 @@ tryDiff "$test"/out.err "$outtemp"
|
||||
tryCmp "$test"/out.gb "$gbtemp"
|
||||
evaluateTest
|
||||
|
||||
test="script-ds"
|
||||
startTest
|
||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||
"$RGBASM" -o "$gbtemp2" "$test"/b.asm
|
||||
continueTest
|
||||
rgblinkQuiet -o "$gbtemp" -l "$test"/script.link "$otemp" "$gbtemp2" 2>"$outtemp"
|
||||
tryDiff "$test"/out.err "$outtemp"
|
||||
evaluateTest
|
||||
|
||||
test="script-include"
|
||||
startTest
|
||||
"$RGBASM" -o "$otemp" "$test"/a.asm
|
||||
|
||||
Reference in New Issue
Block a user