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 | |
| 14 | OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") |
| 15 | OUTPUT_ARCH(sh) |
| 16 | ENTRY(_start) |
| 17 | |
| 18 | SECTIONS |
| 19 | { |
| 20 | /* |
Jean-Christophe PLAGNIOL-VILLARD | 6e74389 | 2009-06-04 12:06:44 +0200 | [diff] [blame] | 21 | * entry and reloct_dst will be provided via ldflags |
| 22 | */ |
| 23 | . = .; |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 24 | |
| 25 | PROVIDE (_ftext = .); |
| 26 | PROVIDE (_fcode = .); |
| 27 | PROVIDE (_start = .); |
| 28 | |
| 29 | .text : |
| 30 | { |
Masahiro Yamada | a9b82be | 2014-06-20 16:40:14 +0900 | [diff] [blame] | 31 | KEEP(*/start.o (.text)) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 32 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 33 | common/env_embedded.o (.ppcenv) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 34 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 35 | common/env_embedded.o (.ppcenvr) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 36 | . = ALIGN(8192); |
| 37 | *(.text) |
| 38 | . = ALIGN(4); |
| 39 | } =0xFF |
| 40 | PROVIDE (_ecode = .); |
| 41 | .rodata : |
| 42 | { |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 43 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 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 | |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 65 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 66 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 67 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 68 | } |
| 69 | |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 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 | |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 82 | PROVIDE (__bss_end = .); |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 83 | } |