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