NanoPayload

stage1/stage1.ld

18:5d33753dfd71
2015-06-07 Paul Boddie Separated the stages into separate directories in order to employ different compilation options, principally to introduce the object relocation technique apparently required by stage 2.
     1 OUTPUT_ARCH(mips)     2 ENTRY(_start)     3 MEMORY     4 {     5 	ram	: ORIGIN = 0x80002000 , LENGTH = 0x100000     6 }     7      8 SECTIONS     9 {    10 	. = ALIGN(4);    11 	.text : { *(.text*) } > ram    12     13 	. = ALIGN(4);    14 	.rodata : { *(.rodata*) } > ram    15     16 	. = ALIGN(4);    17 	.sdata : { *(.sdata*) } > ram    18     19 	. = ALIGN(4);    20 	.data : { *(.data*) *(.scommon*) *(.reginfo*) } > ram    21     22 	_gp = ABSOLUTE(.); /* Base of small data */    23     24 	.got : { *(.got*) } > ram    25     26 	. = ALIGN(4);    27 	.sbss : { *(.sbss*) } > ram    28 	.bss : { *(.bss*) } > ram    29 	. = ALIGN (4);    30 }    31