]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/sh/cpu/sh4/u-boot.lds
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / sh / cpu / sh4 / u-boot.lds
CommitLineData
b2b5e2bb 1/*
3931a375 2 * Copyright (C) 2007
b2b5e2bb
YS
3 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
4 *
3931a375
JCPV
5 * Copyright (C) 2008-2009
6 * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
7 *
1a459660 8 * SPDX-License-Identifier: GPL-2.0+
b2b5e2bb
YS
9 */
10
11OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
12OUTPUT_ARCH(sh)
13ENTRY(_start)
14
15SECTIONS
16{
17 /*
236aad87
JCPV
18 * entry and reloct_dst will be provided via ldflags
19 */
20 . = .;
b2b5e2bb
YS
21
22 PROVIDE (_ftext = .);
23 PROVIDE (_fcode = .);
24 PROVIDE (_start = .);
25
26 .text :
27 {
b52da2ae 28 KEEP(arch/sh/cpu/sh4/start.o (.text))
b2b5e2bb 29 . = ALIGN(8192);
0cf4fd3c 30 common/env_embedded.o (.ppcenv)
b2b5e2bb 31 . = ALIGN(8192);
0cf4fd3c 32 common/env_embedded.o (.ppcenvr)
b2b5e2bb
YS
33 . = ALIGN(8192);
34 *(.text)
35 . = ALIGN(4);
36 } =0xFF
37 PROVIDE (_ecode = .);
38 .rodata :
39 {
f62fb999 40 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
b2b5e2bb
YS
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
b2b5e2bb 62
55675142 63 .u_boot_list : {
ef123c52 64 KEEP(*(SORT(.u_boot_list*)));
55675142
MV
65 }
66
b2b5e2bb
YS
67 PROVIDE (reloc_dst_end = .);
68 /* _reloc_dst_end = .; */
69
70 PROVIDE (bss_start = .);
71 PROVIDE (__bss_start = .);
3931a375 72 .bss (NOLOAD) :
b2b5e2bb
YS
73 {
74 *(.bss)
75 . = ALIGN(4);
76 }
77 PROVIDE (bss_end = .);
78
3929fb0a 79 PROVIDE (__bss_end = .);
b2b5e2bb 80}