NanoPayload

Annotated stage2/stage2.ld

175:8e7b3cc4a268
2016-04-25 Paul Boddie Attempted to simplify region allocation by putting the object table copy in a completely separate location.
paul@6 1
OUTPUT_ARCH(mips)
paul@6 2
ENTRY(_start)
paul@6 3
paul@6 4
SECTIONS
paul@6 5
{
paul@66 6
	/* Program memory section. */
paul@66 7
paul@89 8
	. = 0x81c00000;
paul@174 9
paul@174 10
	_payload_start = ABSOLUTE(.);
paul@174 11
	_shared_start = ABSOLUTE(.);
paul@174 12
paul@66 13
	.text2 : { *(.text*) }
paul@6 14
paul@6 15
	. = ALIGN(4);
paul@66 16
	.rodata : { *(.rodata*) }
paul@6 17
paul@6 18
	. = ALIGN(4);
paul@66 19
	.sdata : { *(.sdata*) }
paul@6 20
paul@6 21
	. = ALIGN(4);
paul@66 22
	.data : { *(.data*) *(.scommon*) *(.reginfo*) }
paul@6 23
paul@6 24
	. = ALIGN(4);
paul@66 25
	.sbss : { *(.sbss*) }
paul@66 26
	.bss : { *(.bss*) }
paul@175 27
paul@6 28
	. = ALIGN (4);
paul@175 29
	_shared_end = ABSOLUTE(.);
paul@174 30
paul@174 31
	.got : ALIGN(4096) {
paul@174 32
		_gp = ALIGN(16);
paul@174 33
		_got_start = ABSOLUTE(.);	
paul@175 34
		*(.got*)
paul@174 35
	}
paul@174 36
	_got_end = ABSOLUTE(.);	
paul@174 37
	_payload_end = ABSOLUTE(.);
paul@6 38
}