Correct rgblink(5) linkerscript doc to match behavior of unbanked ROMX/WRAMX (#2103)

This commit is contained in:
Rangi
2026-09-17 05:32:15 +02:00
committed by GitHub
parent e8d9eb4511
commit b2967ff509
5 changed files with 20 additions and 3 deletions
-3
View File
@@ -73,14 +73,11 @@ and
.Ic HRAM .
The bank number can be omitted from the types that only contain a single bank, which are:
.Ic ROM0 ,
.Ic ROMX No if Fl t No is passed to Xr rgblink 1 ,
.Ic VRAM No if Fl d No is passed to Xr rgblink 1 ,
.Ic WRAM0 ,
.Ic WRAMX No if Fl w No is passed to Xr rgblink 1 ,
.Ic OAM ,
and
.Ic HRAM .
.Pq Ic SRAM No is the only type that can never have its bank number omitted.
.Pp
After a bank specification, the
.Dq current address
+8
View File
@@ -0,0 +1,8 @@
SECTION "rom", ROMX
Label:: db 42
SECTION "wram", WRAMX
wLabel:: ds 1
SECTION "vram", VRAM
vLabel:: ds 1
+1
View File
@@ -0,0 +1 @@
-t -d
+6
View File
@@ -0,0 +1,6 @@
ROMX
"rom"
WRAMX
"wram"
VRAM
"vram"
+5
View File
@@ -0,0 +1,5 @@
error: A bank number must be specified for ROMX
at linkerscript-no-bank.link(1)
error: A bank number must be specified for WRAMX
at linkerscript-no-bank.link(3)
Linking failed with 2 errors