summaryrefslogtreecommitdiff
path: root/util/mkelfImage/linux-i386/convert.lds
blob: 2195fe435dd771635f488043314664dc342a6319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386")
OUTPUT_ARCH(i386)


ENTRY(startup_32)
SECTIONS
{
	. = 0x10000;
	_text = .;			/* Text and read-only data */
	.text . : {
		*(.text)
		*(.text.*)
	}  = 0x9090
	.rodata (.): { 
		*(.rodata) 
		*(.rodata.*)
	}
	_etext = .;			/* End of text section */
	.data (.): {			/* Data */
		*(.data)
		*(.data.*)
		*(.trailer)
	}
	_edata = .;			/* End of data section */
	_bss = .;			/* BSS */
	.bss (.): {
		*(.bss)
	}
	_end = . ;
	bss_size = _end - _bss;
	
	/DISCARD/ : {
		*(.comment)
		*(.note)
	}
}