]>
Commit | Line | Data |
---|---|---|
cb5dbca8 GJ |
1 | /* |
2 | * (C) Copyright 2003 | |
3 | * Wolfgang Denk Engineering, <wd@denx.de> | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
cb5dbca8 GJ |
6 | */ |
7 | ||
cb5dbca8 GJ |
8 | OUTPUT_ARCH(mips) |
9 | ENTRY(_start) | |
10 | SECTIONS | |
11 | { | |
12 | . = 0x00000000; | |
13 | ||
14 | . = ALIGN(4); | |
15 | .text : { | |
d263cda5 | 16 | __text_start = .; |
cb5dbca8 | 17 | *(.text*) |
d263cda5 | 18 | __text_end = .; |
cb5dbca8 GJ |
19 | } |
20 | ||
21 | . = ALIGN(4); | |
22 | .rodata : { | |
23 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) | |
24 | } | |
25 | ||
26 | . = ALIGN(4); | |
27 | .data : { | |
28 | *(.data*) | |
29 | } | |
30 | ||
cb5dbca8 GJ |
31 | . = ALIGN(4); |
32 | .sdata : { | |
33 | *(.sdata*) | |
34 | } | |
35 | ||
36 | . = ALIGN(4); | |
37 | .u_boot_list : { | |
ef123c52 | 38 | KEEP(*(SORT(.u_boot_list*))); |
cb5dbca8 GJ |
39 | } |
40 | ||
cb5dbca8 | 41 | . = ALIGN(4); |
3420bf1c | 42 | __image_copy_end = .; |
a0af08b9 | 43 | __init_end = .; |
3420bf1c | 44 | |
703ec9dd PB |
45 | /* |
46 | * .rel must come last so that the mips-relocs tool can shrink | |
47 | * the section size & the PT_LOAD program header filesz. | |
48 | */ | |
49 | .rel : { | |
50 | __rel_start = .; | |
51 | BYTE(0x0) | |
52 | . += (32 * 1024) - 1; | |
265072ba DS |
53 | } |
54 | ||
79fd7e64 | 55 | _end = .; |
0ba8926e | 56 | |
703ec9dd | 57 | .bss __rel_start (OVERLAY) : { |
a52852c5 DS |
58 | __bss_start = .; |
59 | *(.sbss.*) | |
60 | *(.bss.*) | |
61 | *(COMMON) | |
cb5dbca8 | 62 | . = ALIGN(4); |
a52852c5 | 63 | __bss_end = .; |
cb5dbca8 | 64 | } |
0ba8926e | 65 | |
79fd7e64 DS |
66 | .dynsym _end : { |
67 | *(.dynsym) | |
68 | } | |
69 | ||
70 | .dynbss : { | |
0ba8926e | 71 | *(.dynbss) |
79fd7e64 DS |
72 | } |
73 | ||
74 | .dynstr : { | |
0ba8926e | 75 | *(.dynstr) |
79fd7e64 DS |
76 | } |
77 | ||
78 | .dynamic : { | |
0ba8926e | 79 | *(.dynamic) |
79fd7e64 DS |
80 | } |
81 | ||
82 | .plt : { | |
83 | *(.plt) | |
84 | } | |
85 | ||
86 | .interp : { | |
0ba8926e | 87 | *(.interp) |
79fd7e64 DS |
88 | } |
89 | ||
90 | .gnu : { | |
91 | *(.gnu*) | |
92 | } | |
93 | ||
94 | .MIPS.stubs : { | |
95 | *(.MIPS.stubs) | |
96 | } | |
97 | ||
98 | .hash : { | |
0ba8926e | 99 | *(.hash) |
0ba8926e | 100 | } |
cb5dbca8 | 101 | } |