summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/image/lzma-loader/src/loader.lds
blob: 80cc7ca3ecf53a747fc139560b89c233f4343293 (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
OUTPUT_ARCH(mips)
SECTIONS {
	.text : {
		_code_start = .;
		*(.text)
		*(.text.*)
		*(.rodata)
		*(.rodata.*)
		*(.data.lzma)
	}

	. = ALIGN(32);
	.data : {
		*(.data)
		*(.data.*)
		. = . + 524288;		/* workaround for buggy bootloaders */
	}

	. = ALIGN(32);
	_code_end = .;

	_bss_start = .;
	.bss : {
		*(.bss)
		*(.bss.*)
	}

	. = ALIGN(32);
	_bss_end = .;

	. = . + 8192;
	_stack = .;

	workspace = .;
}