Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | /* |
2 | * linux/arch/arm/boot/compressed/vmlinux.lds.in | |
3 | * | |
4 | * Copyright (C) 2000 Russell King | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | */ | |
10 | OUTPUT_ARCH(arm) | |
11 | ENTRY(_start) | |
12 | SECTIONS | |
13 | { | |
bff595c1 CM |
14 | /DISCARD/ : { |
15 | *(.ARM.exidx*) | |
16 | *(.ARM.extab*) | |
5de813b6 RK |
17 | /* |
18 | * Discard any r/w data - this produces a link error if we have any, | |
19 | * which is required for PIC decompression. Local data generates | |
20 | * GOTOFF relocations, which prevents it being relocated independently | |
21 | * of the text/got segments. | |
22 | */ | |
23 | *(.data) | |
bff595c1 CM |
24 | } |
25 | ||
1da177e4 LT |
26 | . = TEXT_START; |
27 | _text = .; | |
28 | ||
29 | .text : { | |
30 | _start = .; | |
31 | *(.start) | |
32 | *(.text) | |
c5b8ef62 | 33 | *(.text.*) |
1da177e4 LT |
34 | *(.fixup) |
35 | *(.gnu.warning) | |
36 | *(.rodata) | |
37 | *(.rodata.*) | |
38 | *(.glue_7) | |
39 | *(.glue_7t) | |
40 | *(.piggydata) | |
41 | . = ALIGN(4); | |
42 | } | |
43 | ||
44 | _etext = .; | |
45 | ||
98e12b5a RK |
46 | /* Assume size of decompressed image is 4x the compressed image */ |
47 | _image_size = (_etext - _text) * 4; | |
48 | ||
1da177e4 LT |
49 | _got_start = .; |
50 | .got : { *(.got) } | |
51 | _got_end = .; | |
52 | .got.plt : { *(.got.plt) } | |
1da177e4 LT |
53 | _edata = .; |
54 | ||
55 | . = BSS_START; | |
56 | __bss_start = .; | |
57 | .bss : { *(.bss) } | |
58 | _end = .; | |
59 | ||
60 | .stack (NOLOAD) : { *(.stack) } | |
61 | ||
62 | .stab 0 : { *(.stab) } | |
63 | .stabstr 0 : { *(.stabstr) } | |
64 | .stab.excl 0 : { *(.stab.excl) } | |
65 | .stab.exclstr 0 : { *(.stab.exclstr) } | |
66 | .stab.index 0 : { *(.stab.index) } | |
67 | .stab.indexstr 0 : { *(.stab.indexstr) } | |
68 | .comment 0 : { *(.comment) } | |
69 | } | |
70 |