6502/vbcc/targets/qnice-mon/vlink.cmd
2022-05-12 21:36:39 +09:30

30 lines
459 B
Batchfile
Executable File

MEMORY
{
ram: org = 0x10000, l = 0x10000
}
SECTIONS
{
.text : { *(.text) } > ram
.dtors : { *(.dtors) } > ram
.ctors : { *(.ctors) } > ram
/* .data: { *(.data) } > ram AT> rom */
.data : { *(.data) } > ram
.bss: { *(.bss) } > ram
/* for initialization of data
__DS = ADDR(.data);
__DE = __NDS + SIZEOF(.data);
__DI = LOADADDR(.data);
*/
__BS = ADDR(.bss);
__BE = ADDR(.bss) + SIZEOF(.bss);
}