]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/tx6/u-boot.lds
4578febfb434b753cc430a9d59a4a715cf368e09
[karo-tx-uboot.git] / board / karo / tx6 / 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                 *(.__image_copy_start)
31                 *(.vectors)
32                 CPUDIR/start.o (.text*)
33                 . = 0x400;
34                 KEEP(board/karo/tx6/lowlevel_init.o (.text*))
35                 *(.text*)
36         }
37
38         . = ALIGN(4);
39         .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
40
41         . = ALIGN(4);
42         .data : {
43                 *(.data*)
44         }
45
46         . = ALIGN(4);
47         .u_boot_list : {
48                 KEEP(*(SORT(.u_boot_list*)));
49         }
50
51         . = ALIGN(4);
52         .image_copy_end :
53         {
54                 *(.__image_copy_end)
55         }
56
57         .rel_dyn_start :
58         {
59                 *(.__rel_dyn_start)
60         }
61
62         .rel.dyn :
63         {
64                 *(.rel*)
65         }
66
67         .rel_dyn_end :
68         {
69                 *(.__rel_dyn_end)
70         }
71
72         .end :
73         {
74                 *(.__end)
75         }
76
77         _image_binary_end = .;
78
79 /*
80  * Compiler-generated __bss_start and __bss_end, see arch/arm/lib/bss.c
81  * __bss_base and __bss_limit are for linker only (overlay ordering)
82  */
83
84         .bss_start __rel_dyn_start (OVERLAY) : {
85                 KEEP(*(.__bss_start));
86                 __bss_base = .;
87         }
88
89         .bss __bss_base (OVERLAY) : {
90                 *(.bss*)
91                 . = ALIGN(4);
92                 __bss_limit = .;
93         }
94         .bss_end __bss_limit (OVERLAY) : {
95                 KEEP(*(.__bss_end));
96         }
97  
98         .dynsym _image_binary_end : { *(.dynsym) }
99         .dynbss : { *(.dynbss) }
100         .dynstr : { *(.dynstr*) }
101         .dynamic : { *(.dynamic*) }
102         .plt : { *(.plt*) }
103         .interp : { *(.interp*) }
104         .gnu.hash : { *(.gnu.hash) }
105         .gnu : { *(.gnu*) }
106         .ARM.exidx : { *(.ARM.exidx*) }
107         .gnu.linkonce.armexidx : { *(.gnu.linkonce.armexidx.*) }
108
109 /*
110         /DISCARD/ : { *(.bss*) }
111         /DISCARD/ : { *(.dynstr*) }
112         /DISCARD/ : { *(.dynsym*) }
113         /DISCARD/ : { *(.dynamic*) }
114         /DISCARD/ : { *(.hash*) }
115         /DISCARD/ : { *(.plt*) }
116         /DISCARD/ : { *(.interp*) }
117         /DISCARD/ : { *(.gnu*) }
118 */
119 }