summaryrefslogblamecommitdiff
path: root/demo/script.ld
blob: 6eb58e4b5eb0ccc506d2b758447bf142353e2dcf (plain) (tree)
1
2
3
4
5
6
7


                


                                                   
                                                 




                                                     


          

                                       


                                     
OUTPUT_ARCH(arm)

MEMORY {
	bios  : ORIGIN = 0x0000000,LENGTH = 0x4000
	ewram : ORIGIN = 0x2000000,LENGTH = 0x40000
	iwram : ORIGIN = 0x3000000,LENGTH = 0x8000
	io    : ORIGIN = 0x4000000,LENGTH = 0x3FF
	pal   : ORIGIN = 0x5000000,LENGTH = 0x400
	vram  : ORIGIN = 0x6000000,LENGTH = 0x18000
	oam   : ORIGIN = 0x7000000,LENGTH = 0x400
	rom   : ORIGIN = 0x8000000,LENGTH = 0x2000000
	sram  : ORIGIN = 0xE000000,LENGTH = 0x10000
}

SECTIONS {
	.bss    : {*(.bss*)}    > iwram
	.data   : {*(.data*)}   > iwram
	.text   : {*(.text*)}   > rom
	.rodata : {*(.rodata*)} > rom
}