SMS-GCI-Loader/ldscript/sms.ld
sup39 23e5c658ad Add script to build gecko code of GCI Loader
- GCI Loader: gecko-gosub + 06 bin + 04 bl to onReadOptionBlock
- place GCI Loader code at 817FE800 since [817FEEA0, 81800000) is used
  by system
- place buffer at 817F1800 (instead of 817F1000+4) since there seems to
  be some alignment issue
- Assume file size == 0x2000*6 since fileInfo->length seems to be 0
2023-02-11 19:36:44 +09:00

14 lines
332 B
Text

/**
* There seems to be an alignment issue
* addr of GCTDST.code may need to be a multiple of 0x200 or something?
*/
GCTDST = 0x817F1800 - 8;
SECTIONS {
. = 0x817FE800; /* TODO: Determine Best Address */
.text : { *(.text) }
.rodata : { *(.rodata) }
.data : { *(.data) }
.bss : { *(.bss) }
.sdata : { *(.sdata) }
}