Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 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> |
Wolfgang Denk | 35f734f | 2008-04-13 09:59:26 -0700 | [diff] [blame] | 10 | * |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 11 | * See file CREDITS for list of people who contributed to this |
| 12 | * project. |
| 13 | * |
| 14 | * This program is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU General Public License as |
| 16 | * published by the Free Software Foundation; either version 2 of |
| 17 | * the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This program is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | * GNU General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU General Public License |
| 25 | * along with this program; if not, write to the Free Software |
| 26 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 27 | * MA 02111-1307 USA |
| 28 | */ |
| 29 | |
| 30 | OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") |
| 31 | OUTPUT_ARCH(sh) |
| 32 | ENTRY(_start) |
| 33 | |
| 34 | SECTIONS |
| 35 | { |
| 36 | /* |
Jean-Christophe PLAGNIOL-VILLARD | 6e74389 | 2009-06-04 12:06:44 +0200 | [diff] [blame] | 37 | * entry and reloct_dst will be provided via ldflags |
| 38 | */ |
| 39 | . = .; |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 40 | |
| 41 | PROVIDE (_ftext = .); |
| 42 | PROVIDE (_fcode = .); |
| 43 | PROVIDE (_start = .); |
| 44 | |
| 45 | .text : |
| 46 | { |
Nobuhiro Iwamatsu | cb4148c | 2011-03-07 16:36:21 +0900 | [diff] [blame] | 47 | KEEP(arch/sh/cpu/sh3/start.o (.text)) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 48 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 49 | common/env_embedded.o (.ppcenv) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 50 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 51 | common/env_embedded.o (.ppcenvr) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 52 | . = ALIGN(8192); |
| 53 | *(.text) |
| 54 | . = ALIGN(4); |
| 55 | } =0xFF |
| 56 | PROVIDE (_ecode = .); |
| 57 | .rodata : |
| 58 | { |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 59 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 60 | . = ALIGN(4); |
| 61 | } |
| 62 | PROVIDE (_etext = .); |
| 63 | |
| 64 | |
| 65 | PROVIDE (_fdata = .); |
| 66 | .data : |
| 67 | { |
| 68 | *(.data) |
| 69 | . = ALIGN(4); |
| 70 | } |
| 71 | PROVIDE (_edata = .); |
| 72 | |
| 73 | PROVIDE (_fgot = .); |
| 74 | .got : |
| 75 | { |
| 76 | *(.got) |
| 77 | . = ALIGN(4); |
| 78 | } |
| 79 | PROVIDE (_egot = .); |
| 80 | |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 81 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 82 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 83 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 84 | } |
| 85 | |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 86 | PROVIDE (reloc_dst_end = .); |
| 87 | /* _reloc_dst_end = .; */ |
| 88 | |
| 89 | PROVIDE (bss_start = .); |
| 90 | PROVIDE (__bss_start = .); |
| 91 | .bss : |
| 92 | { |
| 93 | *(.bss) |
| 94 | . = ALIGN(4); |
| 95 | } |
| 96 | PROVIDE (bss_end = .); |
| 97 | |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 98 | PROVIDE (__bss_end = .); |
Mark Jonas | 35a398a | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 99 | } |