]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/tx53/u-boot.lds
Unified codebase for TX28, TX48, TX51, TX53
[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
29         . = ALIGN(4);
30         .text :
31         {
32                 board/karo/tx53/lowlevel_init.o (.text)
33                 __image_copy_start = .;
34                 CPUDIR/start.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
48         . = .;
49         __u_boot_cmd_start = .;
50         .u_boot_cmd : { *(.u_boot_cmd) }
51         __u_boot_cmd_end = .;
52
53         . = ALIGN(4);
54
55         __image_copy_end = .;
56
57         .rel.dyn : {
58                 __rel_dyn_start = .;
59                 *(.rel*)
60                 __rel_dyn_end = .;
61         }
62
63         .dynsym : {
64                 __dynsym_start = .;
65                 *(.dynsym)
66         }
67
68         _end = .;
69
70         .bss __rel_dyn_start (OVERLAY) : {
71                 __bss_start = .;
72                 *(.bss)
73                  . = ALIGN(4);
74                 __bss_end__ = .;
75         }
76
77         /DISCARD/ : { *(.dynstr*) }
78         /DISCARD/ : { *(.dynamic*) }
79         /DISCARD/ : { *(.plt*) }
80         /DISCARD/ : { *(.interp*) }
81         /DISCARD/ : { *(.gnu*) }
82 }