]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/sh/cpu/sh4/u-boot.lds
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / sh / cpu / sh4 / u-boot.lds
1 /*
2  * Copyright (C) 2007
3  * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4  *
5  * Copyright (C) 2008-2009
6  * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
7  *
8  * SPDX-License-Identifier:     GPL-2.0+
9  */
10
11 OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
12 OUTPUT_ARCH(sh)
13 ENTRY(_start)
14
15 SECTIONS
16 {
17         /*
18          * entry and reloct_dst will be provided via ldflags
19          */
20         . = .;
21
22         PROVIDE (_ftext = .);
23         PROVIDE (_fcode = .);
24         PROVIDE (_start = .);
25
26         .text :
27         {
28                 KEEP(arch/sh/cpu/sh4/start.o            (.text))
29                 . = ALIGN(8192);
30                 common/env_embedded.o   (.ppcenv)
31                 . = ALIGN(8192);
32                 common/env_embedded.o   (.ppcenvr)
33                 . = ALIGN(8192);
34                 *(.text)
35                 . = ALIGN(4);
36         } =0xFF
37         PROVIDE (_ecode = .);
38         .rodata :
39         {
40                 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
41                 . = ALIGN(4);
42         }
43         PROVIDE (_etext = .);
44
45
46         PROVIDE (_fdata = .);
47         .data :
48         {
49                 *(.data)
50                 . = ALIGN(4);
51         }
52         PROVIDE (_edata = .);
53
54         PROVIDE (_fgot = .);
55         .got :
56         {
57                 *(.got)
58                 . = ALIGN(4);
59         }
60         PROVIDE (_egot = .);
61
62
63         .u_boot_list : {
64                 KEEP(*(SORT(.u_boot_list*)));
65         }
66
67         PROVIDE (reloc_dst_end = .);
68         /* _reloc_dst_end = .; */
69
70         PROVIDE (bss_start = .);
71         PROVIDE (__bss_start = .);
72         .bss (NOLOAD) :
73         {
74                 *(.bss)
75                 . = ALIGN(4);
76         }
77         PROVIDE (bss_end = .);
78
79         PROVIDE (__bss_end = .);
80 }