]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/tx53/u-boot.lds
392a9ef42a5027b08dd0d16e37b01cc716bf1b04
[karo-tx-uboot.git] / board / karo / tx53 / u-boot.lds
1 /*
2  * (C) Copyright 2012  Lothar Waßmann <LW@KARO-electronics.de>
3  *
4  * See file CREDITS for list of people who contributed to this
5  * project.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20  * MA 02111-1307 USA
21  */
22 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
23 OUTPUT_ARCH(arm)
24 ENTRY(_start)
25 SECTIONS
26 {
27         . = 0x00000000;
28         .text :
29         {
30                 __uboot_img_start = .;
31                 . = 0x400;
32                 __ivt_start = .;
33                 KEEP(*(.ivt*))
34                 . = 0x1000;
35                 __ivt_end = .;
36                 *(.__image_copy_start)
37                 *(.vectors)
38                 CPUDIR/start.o (.text*)
39                 *(.text*)
40         } = 0xadde01f0
41
42         . = ALIGN(4);
43         .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
44
45         . = ALIGN(4);
46         .data : {
47                 *(.data*)
48                 . = ALIGN(4);
49         }
50
51         .u_boot_list : {
52                 KEEP(*(SORT(.u_boot_list*)));
53         }
54
55         . = ALIGN(4);
56         .image_copy_end :
57         {
58                 *(.__image_copy_end)
59         }
60
61         .rel_dyn_start :
62         {
63                 *(.__rel_dyn_start)
64         }
65
66         .rel.dyn :
67         {
68                 *(.rel*)
69         }
70
71         .rel_dyn_end :
72         {
73                 *(.__rel_dyn_end)
74         }
75
76         .pad :
77         {
78                 /* Workaround for a bug in i.MX53 ROM Code,
79                  * which skips loading the last block if it doesn't
80                  * end on a 4KiB boundary.
81                  */
82                 *(.pad)
83                 . = ALIGN(4096);
84         } = 0x01f0adde
85
86         _image_binary_end = . + (__ivt_end - __uboot_img_start);
87
88         .uboot_img_end :
89         {
90                 KEEP(*(.__uboot_img_end))
91         }
92
93         . = CONFIG_SYS_TEXT_BASE + 0x70000;
94         .csf_data :
95         {
96                 *(.__csf_data)
97                 . = . + 0x2000;
98         }
99         __uboot_img_len = . - __uboot_img_start;
100
101 /*
102  * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
103  * __bss_base and __bss_limit are for linker only (overlay ordering)
104  */
105
106         .bss_start __rel_dyn_start (OVERLAY) : {
107                 KEEP(*(.__bss_start));
108                 __bss_base = .;
109         }
110
111         .bss __bss_base (OVERLAY) : {
112                 *(.bss*)
113                 . = ALIGN(4);
114                 __bss_limit = .;
115         }
116         .bss_end __bss_limit (OVERLAY) : {
117                 KEEP(*(.__bss_end));
118         }
119
120         .dynsym _image_binary_end : { *(.dynsym) }
121         /DISCARD/ : { *(.debug*) }
122         /DISCARD/ : { *(.note*) }
123         /DISCARD/ : { *(.comment*) }
124         /DISCARD/ : { *(.dynbss) }
125         /DISCARD/ : { *(.dynstr*) }
126         /DISCARD/ : { *(.dynamic*) }
127         /DISCARD/ : { *(.plt*) }
128         /DISCARD/ : { *(.interp*) }
129         /DISCARD/ : { *(.gnu.hash) }
130         /DISCARD/ : { *(.gnu*) }
131         /DISCARD/ : { *(.ARM.exidx*) }
132         /DISCARD/ : { *(.gnu.linkonce.armexidx.*) }
133 }