NanoPayload

stage2/stage2.ld

216:95be7694d999
2017-06-28 Paul Boddie Employ structure member names to make initialisation clearer.
     1 OUTPUT_ARCH(mips)     2 ENTRY(_start)     3      4 SECTIONS     5 {     6 	/* Program memory section. */     7      8 	. = 0x81c00000;     9 	_payload_start = ABSOLUTE(.);    10     11 	.text2 : { *(.text*) }    12     13 	. = ALIGN(4);    14 	.rodata : { *(.rodata*) }    15     16 	. = ALIGN(4);    17 	.sdata : { *(.sdata*) }    18     19 	. = ALIGN(4);    20 	.data : { *(.data*) *(.scommon*) *(.reginfo*) }    21     22 	. = ALIGN(4);    23 	.sbss : { *(.sbss*) }    24 	.bss : { *(.bss*) }    25     26 	.got : ALIGN(8192) {    27 		_gp = ALIGN(16);    28 		_got_start = ABSOLUTE(.);	    29 		*(.got*)    30 	}    31 	_got_end = ABSOLUTE(.);	    32     33 	.got_copy : ALIGN(8192) {    34 		_gp_copy = ALIGN(16);    35 		_got_copy_start = ABSOLUTE(.);    36 		. += _got_end - _got_start;    37 	}    38 	_got_copy_end = ABSOLUTE(.);    39 	_memory_end = 0x82000000;    40 }    41