Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 1 | /* |
2 | * Copyright (C) 2007 | ||||
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 3 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
4 | * | ||||
Masahiro Yamada | a9b82be | 2014-06-20 16:40:14 +0900 | [diff] [blame] | 5 | * Copyright (C) 2008-2009 |
6 | * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> | ||||
7 | * | ||||
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 8 | * Copyright (C) 2008 |
9 | * Mark Jonas <mark.jonas@de.bosch.com> | ||||
Wolfgang Denk | 35f734f | 2008-04-13 09:59:26 -0700 | [diff] [blame] | 10 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 12 | */ |
13 | |||||
Vladimir Zapolskiy | fd71770 | 2016-11-28 00:15:25 +0200 | [diff] [blame] | 14 | #include "config.h" |
15 | |||||
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 16 | OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") |
17 | OUTPUT_ARCH(sh) | ||||
18 | ENTRY(_start) | ||||
19 | |||||
20 | SECTIONS | ||||
21 | { | ||||
Vladimir Zapolskiy | 621f570 | 2016-11-28 00:15:27 +0200 | [diff] [blame^] | 22 | reloc_dst = .; |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 23 | |
24 | PROVIDE (_ftext = .); | ||||
25 | PROVIDE (_fcode = .); | ||||
26 | PROVIDE (_start = .); | ||||
27 | |||||
28 | .text : | ||||
29 | { | ||||
Masahiro Yamada | a9b82be | 2014-06-20 16:40:14 +0900 | [diff] [blame] | 30 | KEEP(*/start.o (.text)) |
Vladimir Zapolskiy | 28d1b0e | 2016-11-28 00:15:26 +0200 | [diff] [blame] | 31 | KEEP(CONFIG_BOARDDIR/lowlevel_init.o (.text .spiboot1.text)) |
Vladimir Zapolskiy | fd71770 | 2016-11-28 00:15:25 +0200 | [diff] [blame] | 32 | KEEP(*(.spiboot2.text)) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 33 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 34 | common/env_embedded.o (.ppcenv) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 35 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 36 | common/env_embedded.o (.ppcenvr) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 37 | . = ALIGN(8192); |
38 | *(.text) | ||||
39 | . = ALIGN(4); | ||||
40 | } =0xFF | ||||
41 | PROVIDE (_ecode = .); | ||||
42 | .rodata : | ||||
43 | { | ||||
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 44 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 45 | . = ALIGN(4); |
46 | } | ||||
47 | PROVIDE (_etext = .); | ||||
48 | |||||
49 | |||||
50 | PROVIDE (_fdata = .); | ||||
51 | .data : | ||||
52 | { | ||||
53 | *(.data) | ||||
54 | . = ALIGN(4); | ||||
55 | } | ||||
56 | PROVIDE (_edata = .); | ||||
57 | |||||
58 | PROVIDE (_fgot = .); | ||||
59 | .got : | ||||
60 | { | ||||
61 | *(.got) | ||||
62 | . = ALIGN(4); | ||||
63 | } | ||||
64 | PROVIDE (_egot = .); | ||||
65 | |||||
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 66 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 67 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 68 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 69 | } |
70 | |||||
Simon Glass | 6c2afb8 | 2016-05-14 18:49:29 -0600 | [diff] [blame] | 71 | PROVIDE (__init_end = .); |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 72 | PROVIDE (reloc_dst_end = .); |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 73 | |
74 | PROVIDE (bss_start = .); | ||||
75 | PROVIDE (__bss_start = .); | ||||
76 | .bss : | ||||
77 | { | ||||
78 | *(.bss) | ||||
79 | . = ALIGN(4); | ||||
80 | } | ||||
81 | PROVIDE (bss_end = .); | ||||
82 | |||||
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 83 | PROVIDE (__bss_end = .); |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 84 | } |