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 | /* |
| 31 | * Base address of internal SDRAM is 0x0C000000. |
| 32 | * |
| 33 | * NOTE: This address must match with the definition of |
| 34 | *TEXT_BASE in config.mk (in this directory). |
| 35 | */ |
| 36 | |
| 37 | . = 0x0C000000 + (8*1024*1024) - (256*1024); |
| 38 | |
| 39 | PROVIDE (reloc_dst = .); |
| 40 | |
| 41 | PROVIDE (_ftext = .); |
| 42 | PROVIDE (_fcode = .); |
| 43 | PROVIDE (_start = .); |
| 44 | |
| 45 | .text : |
| 46 | { |
| 47 | cpu/sh2/start.o (.text) |
| 48 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 49 | common/env_embedded.o (.ppcenv) |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [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) |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 52 | . = ALIGN(8192); |
| 53 | *(.text) |
| 54 | . = ALIGN(4); |
| 55 | } =0xFF |
| 56 | PROVIDE (_ecode = .); |
| 57 | .rodata : |
| 58 | { |
| 59 | *(.rodata) |
| 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 | |
| 81 | PROVIDE (__u_boot_cmd_start = .); |
| 82 | .u_boot_cmd : |
| 83 | { |
| 84 | *(.u_boot_cmd) |
| 85 | . = ALIGN(4); |
| 86 | } |
| 87 | PROVIDE (__u_boot_cmd_end = .); |
| 88 | |
| 89 | PROVIDE (reloc_dst_end = .); |
| 90 | |
| 91 | PROVIDE (bss_start = .); |
| 92 | PROVIDE (__bss_start = .); |
| 93 | .bss : |
| 94 | { |
| 95 | *(.bss) |
| 96 | . = ALIGN(4); |
| 97 | } |
| 98 | PROVIDE (bss_end = .); |
| 99 | |
| 100 | PROVIDE (_end = .); |
| 101 | } |