blob: fc943af92350ee80e11dbd0158a4b66f5c2cfcb8 [file] [log] [blame]
Gabor Juhoscb5dbca2013-01-30 04:31:52 +00001/*
2 * (C) Copyright 2003
3 * Wolfgang Denk Engineering, <wd@denx.de>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Gabor Juhoscb5dbca2013-01-30 04:31:52 +00006 */
7
Gabor Juhoscb5dbca2013-01-30 04:31:52 +00008OUTPUT_ARCH(mips)
9ENTRY(_start)
10SECTIONS
11{
12 . = 0x00000000;
13
14 . = ALIGN(4);
15 .text : {
Paul Burtond263cda2016-09-21 11:11:06 +010016 __text_start = .;
Gabor Juhoscb5dbca2013-01-30 04:31:52 +000017 *(.text*)
Paul Burtond263cda2016-09-21 11:11:06 +010018 __text_end = .;
Gabor Juhoscb5dbca2013-01-30 04:31:52 +000019 }
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 Juhoscb5dbca2013-01-30 04:31:52 +000031 . = ALIGN(4);
32 .sdata : {
33 *(.sdata*)
34 }
35
36 . = ALIGN(4);
37 .u_boot_list : {
Albert ARIBAUDef123c52013-02-25 00:59:00 +000038 KEEP(*(SORT(.u_boot_list*)));
Gabor Juhoscb5dbca2013-01-30 04:31:52 +000039 }
40
Gabor Juhoscb5dbca2013-01-30 04:31:52 +000041 . = ALIGN(4);
Daniel Schwierzeck3420bf12013-02-12 22:22:12 +010042 __image_copy_end = .;
Paul Burtona0af08b2014-04-07 10:11:19 +010043 __init_end = .;
Daniel Schwierzeck3420bf12013-02-12 22:22:12 +010044
Paul Burton703ec9d2017-06-19 11:53:47 -070045 /*
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 Schwierzeck265072b2014-10-29 17:30:36 +010053 }
54
Daniel Schwierzeck79fd7e62013-10-11 17:46:59 +020055 _end = .;
Gabor Juhos0ba89262013-02-12 22:22:13 +010056
Paul Burton703ec9d2017-06-19 11:53:47 -070057 .bss __rel_start (OVERLAY) : {
Daniel Schwierzecka52852c2013-02-12 22:22:12 +010058 __bss_start = .;
59 *(.sbss.*)
60 *(.bss.*)
61 *(COMMON)
62 . = ALIGN(4);
63 __bss_end = .;
Gabor Juhoscb5dbca2013-01-30 04:31:52 +000064 }
Gabor Juhos0ba89262013-02-12 22:22:13 +010065
Daniel Schwierzeck79fd7e62013-10-11 17:46:59 +020066 .dynsym _end : {
67 *(.dynsym)
68 }
69
70 .dynbss : {
Gabor Juhos0ba89262013-02-12 22:22:13 +010071 *(.dynbss)
Daniel Schwierzeck79fd7e62013-10-11 17:46:59 +020072 }
73
74 .dynstr : {
Gabor Juhos0ba89262013-02-12 22:22:13 +010075 *(.dynstr)
Daniel Schwierzeck79fd7e62013-10-11 17:46:59 +020076 }
77
78 .dynamic : {
Gabor Juhos0ba89262013-02-12 22:22:13 +010079 *(.dynamic)
Daniel Schwierzeck79fd7e62013-10-11 17:46:59 +020080 }
81
82 .plt : {
Gabor Juhos0ba89262013-02-12 22:22:13 +010083 *(.plt)
Daniel Schwierzeck79fd7e62013-10-11 17:46:59 +020084 }
85
86 .interp : {
87 *(.interp)
88 }
89
90 .gnu : {
91 *(.gnu*)
92 }
93
94 .MIPS.stubs : {
95 *(.MIPS.stubs)
96 }
97
98 .hash : {
99 *(.hash)
Gabor Juhos0ba89262013-02-12 22:22:13 +0100100 }
Gabor Juhoscb5dbca2013-01-30 04:31:52 +0000101}