mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-19 04:07:05 +00:00
Correct rgblink(5) linkerscript doc to match behavior of unbanked ROMX/WRAMX (#2103)
This commit is contained in:
@@ -73,14 +73,11 @@ and
|
|||||||
.Ic HRAM .
|
.Ic HRAM .
|
||||||
The bank number can be omitted from the types that only contain a single bank, which are:
|
The bank number can be omitted from the types that only contain a single bank, which are:
|
||||||
.Ic ROM0 ,
|
.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 VRAM No if Fl d No is passed to Xr rgblink 1 ,
|
||||||
.Ic WRAM0 ,
|
.Ic WRAM0 ,
|
||||||
.Ic WRAMX No if Fl w No is passed to Xr rgblink 1 ,
|
|
||||||
.Ic OAM ,
|
.Ic OAM ,
|
||||||
and
|
and
|
||||||
.Ic HRAM .
|
.Ic HRAM .
|
||||||
.Pq Ic SRAM No is the only type that can never have its bank number omitted.
|
|
||||||
.Pp
|
.Pp
|
||||||
After a bank specification, the
|
After a bank specification, the
|
||||||
.Dq current address
|
.Dq current address
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
SECTION "rom", ROMX
|
||||||
|
Label:: db 42
|
||||||
|
|
||||||
|
SECTION "wram", WRAMX
|
||||||
|
wLabel:: ds 1
|
||||||
|
|
||||||
|
SECTION "vram", VRAM
|
||||||
|
vLabel:: ds 1
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
-t -d
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
ROMX
|
||||||
|
"rom"
|
||||||
|
WRAMX
|
||||||
|
"wram"
|
||||||
|
VRAM
|
||||||
|
"vram"
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user