summaryrefslogtreecommitdiff
path: root/util/mkelfImage/kunzip_src/arch/i386/lib/kunzip.lds
blob: 4d95da42f5d9b8fc39a1a2c9f9f8267e7340620f (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
PAGE_SIZE = 4096;
BASIC_ALIGN = 8;
OUTPUT_FORMAT("elf32-i386")
ENTRY(__start)
SECTIONS
{
	. = PAGE_SIZE;
	_start = .;
	/*
	 * First we place the code and read only data (typically const declared).
	 * This get placed in rom.
	 */
	.text : {
		_text = .;
		*(.text)
		_etext = .;
		_rodata = .;
		*(.rodata);
		_erodata = .;
	}
	/* Global data */
	.data : {
		_data = .;
		*(.data)
		CONSTRUCTORS
		*(.got)
		*(.sdata)
		_edata = .;
	}

	/* Important align _bss so bss may be zeroed with quadword access */
	. = ALIGN(BASIC_ALIGN);
	.bss : {
		_bss = .;
		*(.sbss)
		*(.scommon)
		*(.bss)
		*(COMMON)
		*(.heap)
		*(.stack)
		/* Important align _ebss so bss may be zeroed with quadword access */
		. = ALIGN(BASIC_ALIGN);
		_ebss = .;
	}
	_end = .;

	/DISCARD/ : {
		*(*)
	}
}