Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 1 | /* |
2 | * (C) Copyright 2003 | ||||
3 | * Wolfgang Denk Engineering, <wd@denx.de> | ||||
4 | * | ||||
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 6 | */ |
7 | |||||
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 8 | OUTPUT_ARCH(mips) |
9 | ENTRY(_start) | ||||
10 | SECTIONS | ||||
11 | { | ||||
12 | . = 0x00000000; | ||||
13 | |||||
14 | . = ALIGN(4); | ||||
15 | .text : { | ||||
Paul Burton | 92a06ee | 2016-09-21 11:11:06 +0100 | [diff] [blame] | 16 | __text_start = .; |
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 17 | *(.text*) |
Paul Burton | 92a06ee | 2016-09-21 11:11:06 +0100 | [diff] [blame] | 18 | __text_end = .; |
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 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 | |||||
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 31 | . = ALIGN(4); |
32 | .sdata : { | ||||
33 | *(.sdata*) | ||||
34 | } | ||||
35 | |||||
36 | . = ALIGN(4); | ||||
37 | .u_boot_list : { | ||||
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 38 | KEEP(*(SORT(.u_boot_list*))); |
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 39 | } |
40 | |||||
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 41 | . = ALIGN(4); |
Daniel Schwierzeck | 9049d03 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 42 | __image_copy_end = .; |
Paul Burton | d0589bb | 2014-04-07 10:11:19 +0100 | [diff] [blame] | 43 | __init_end = .; |
Daniel Schwierzeck | 9049d03 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 44 | |
Paul Burton | d3a278d | 2017-06-19 11:53:47 -0700 | [diff] [blame] | 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; | ||||
Daniel Schwierzeck | 4e6cdff | 2014-10-29 17:30:36 +0100 | [diff] [blame] | 53 | } |
54 | |||||
Daniel Schwierzeck | 1263ea8 | 2013-10-11 17:46:59 +0200 | [diff] [blame] | 55 | _end = .; |
Gabor Juhos | 44ea3c3 | 2013-02-12 22:22:13 +0100 | [diff] [blame] | 56 | |
Paul Burton | d3a278d | 2017-06-19 11:53:47 -0700 | [diff] [blame] | 57 | .bss __rel_start (OVERLAY) : { |
Daniel Schwierzeck | 56b5ec7 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 58 | __bss_start = .; |
59 | *(.sbss.*) | ||||
60 | *(.bss.*) | ||||
61 | *(COMMON) | ||||
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 62 | . = ALIGN(4); |
Daniel Schwierzeck | 56b5ec7 | 2013-02-12 22:22:12 +0100 | [diff] [blame] | 63 | __bss_end = .; |
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 64 | } |
Gabor Juhos | 44ea3c3 | 2013-02-12 22:22:13 +0100 | [diff] [blame] | 65 | |
Daniel Schwierzeck | 1263ea8 | 2013-10-11 17:46:59 +0200 | [diff] [blame] | 66 | .dynsym _end : { |
67 | *(.dynsym) | ||||
68 | } | ||||
69 | |||||
70 | .dynbss : { | ||||
Gabor Juhos | 44ea3c3 | 2013-02-12 22:22:13 +0100 | [diff] [blame] | 71 | *(.dynbss) |
Daniel Schwierzeck | 1263ea8 | 2013-10-11 17:46:59 +0200 | [diff] [blame] | 72 | } |
73 | |||||
74 | .dynstr : { | ||||
Gabor Juhos | 44ea3c3 | 2013-02-12 22:22:13 +0100 | [diff] [blame] | 75 | *(.dynstr) |
Daniel Schwierzeck | 1263ea8 | 2013-10-11 17:46:59 +0200 | [diff] [blame] | 76 | } |
77 | |||||
78 | .dynamic : { | ||||
Gabor Juhos | 44ea3c3 | 2013-02-12 22:22:13 +0100 | [diff] [blame] | 79 | *(.dynamic) |
Daniel Schwierzeck | 1263ea8 | 2013-10-11 17:46:59 +0200 | [diff] [blame] | 80 | } |
81 | |||||
82 | .plt : { | ||||
83 | *(.plt) | ||||
84 | } | ||||
85 | |||||
86 | .interp : { | ||||
Gabor Juhos | 44ea3c3 | 2013-02-12 22:22:13 +0100 | [diff] [blame] | 87 | *(.interp) |
Daniel Schwierzeck | 1263ea8 | 2013-10-11 17:46:59 +0200 | [diff] [blame] | 88 | } |
89 | |||||
90 | .gnu : { | ||||
91 | *(.gnu*) | ||||
92 | } | ||||
93 | |||||
94 | .MIPS.stubs : { | ||||
95 | *(.MIPS.stubs) | ||||
96 | } | ||||
97 | |||||
98 | .hash : { | ||||
Gabor Juhos | 44ea3c3 | 2013-02-12 22:22:13 +0100 | [diff] [blame] | 99 | *(.hash) |
Gabor Juhos | 44ea3c3 | 2013-02-12 22:22:13 +0100 | [diff] [blame] | 100 | } |
Gabor Juhos | 7f44466 | 2013-01-30 04:31:52 +0000 | [diff] [blame] | 101 | } |