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