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