Fix large ds in linker script overflowing the PC

This commit is contained in:
Rangi
2026-07-14 00:42:42 -04:00
parent c0ff3d92ad
commit 19e60d9864
6 changed files with 24 additions and 1 deletions
+2
View File
@@ -0,0 +1,2 @@
section "foo", rom0
Foo:: dw Foo
+2
View File
@@ -0,0 +1,2 @@
section "bar", rom0
Bar:: dw Bar
+3
View File
@@ -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
+5
View File
@@ -0,0 +1,5 @@
ROM0
org $1000
"foo"
ds $ffff_fff0
"bar"