]>
Commit | Line | Data |
---|---|---|
3313e0e2 MJ |
1 | /* |
2 | * Copyright (C) 2007 | |
3 | * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | |
4 | * | |
5 | * Copyright (C) 2007 | |
6 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | |
7 | * | |
8 | * Copyright (C) 2008 | |
9 | * Mark Jonas <mark.jonas@de.bosch.com> | |
1aeed8d7 | 10 | * |
1a459660 | 11 | * SPDX-License-Identifier: GPL-2.0+ |
3313e0e2 MJ |
12 | */ |
13 | ||
14 | OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") | |
15 | OUTPUT_ARCH(sh) | |
16 | ENTRY(_start) | |
17 | ||
18 | SECTIONS | |
19 | { | |
20 | /* | |
236aad87 JCPV |
21 | * entry and reloct_dst will be provided via ldflags |
22 | */ | |
23 | . = .; | |
3313e0e2 MJ |
24 | |
25 | PROVIDE (_ftext = .); | |
26 | PROVIDE (_fcode = .); | |
27 | PROVIDE (_start = .); | |
28 | ||
29 | .text : | |
30 | { | |
b52da2ae | 31 | KEEP(arch/sh/cpu/sh3/start.o (.text)) |
3313e0e2 | 32 | . = ALIGN(8192); |
0cf4fd3c | 33 | common/env_embedded.o (.ppcenv) |
3313e0e2 | 34 | . = ALIGN(8192); |
0cf4fd3c | 35 | common/env_embedded.o (.ppcenvr) |
3313e0e2 MJ |
36 | . = ALIGN(8192); |
37 | *(.text) | |
38 | . = ALIGN(4); | |
39 | } =0xFF | |
40 | PROVIDE (_ecode = .); | |
41 | .rodata : | |
42 | { | |
f62fb999 | 43 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
3313e0e2 MJ |
44 | . = ALIGN(4); |
45 | } | |
46 | PROVIDE (_etext = .); | |
47 | ||
48 | ||
49 | PROVIDE (_fdata = .); | |
50 | .data : | |
51 | { | |
52 | *(.data) | |
53 | . = ALIGN(4); | |
54 | } | |
55 | PROVIDE (_edata = .); | |
56 | ||
57 | PROVIDE (_fgot = .); | |
58 | .got : | |
59 | { | |
60 | *(.got) | |
61 | . = ALIGN(4); | |
62 | } | |
63 | PROVIDE (_egot = .); | |
64 | ||
3313e0e2 | 65 | |
55675142 | 66 | .u_boot_list : { |
ef123c52 | 67 | KEEP(*(SORT(.u_boot_list*))); |
55675142 MV |
68 | } |
69 | ||
3313e0e2 MJ |
70 | PROVIDE (reloc_dst_end = .); |
71 | /* _reloc_dst_end = .; */ | |
72 | ||
73 | PROVIDE (bss_start = .); | |
74 | PROVIDE (__bss_start = .); | |
75 | .bss : | |
76 | { | |
77 | *(.bss) | |
78 | . = ALIGN(4); | |
79 | } | |
80 | PROVIDE (bss_end = .); | |
81 | ||
3929fb0a | 82 | PROVIDE (__bss_end = .); |
3313e0e2 | 83 | } |