Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 1 | /* |
| 2 | * Copyrigth (c) 2007 |
| 3 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 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 | Although size of SDRAM can be either 16 or 32 MBytes, |
| 33 | we assume 16 MBytes (ie ignore upper half if the full |
| 34 | 32 MBytes is present). |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 35 | |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 36 | NOTE: This address must match with the definition of |
| 37 | TEXT_BASE in config.mk (in this directory). |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 38 | |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 39 | */ |
| 40 | . = 0x8C000000 + (64*1024*1024) - (256*1024); |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 41 | |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 42 | PROVIDE (reloc_dst = .); |
| 43 | |
| 44 | PROVIDE (_ftext = .); |
| 45 | PROVIDE (_fcode = .); |
| 46 | PROVIDE (_start = .); |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 47 | |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 48 | .text : |
| 49 | { |
| 50 | cpu/sh4/start.o (.text) |
| 51 | . = ALIGN(8192); |
| 52 | common/environment.o (.ppcenv) |
| 53 | . = ALIGN(8192); |
| 54 | common/environment.o (.ppcenvr) |
| 55 | . = ALIGN(8192); |
| 56 | *(.text) |
| 57 | . = ALIGN(4); |
| 58 | } =0xFF |
| 59 | PROVIDE (_ecode = .); |
| 60 | .rodata : |
| 61 | { |
| 62 | *(.rodata) |
| 63 | . = ALIGN(4); |
| 64 | } |
| 65 | PROVIDE (_etext = .); |
| 66 | |
| 67 | |
| 68 | PROVIDE (_fdata = .); |
| 69 | .data : |
| 70 | { |
| 71 | *(.data) |
| 72 | . = ALIGN(4); |
| 73 | } |
| 74 | PROVIDE (_edata = .); |
| 75 | |
| 76 | PROVIDE (_fgot = .); |
| 77 | .got : |
| 78 | { |
| 79 | *(.got) |
| 80 | . = ALIGN(4); |
| 81 | } |
| 82 | PROVIDE (_egot = .); |
| 83 | |
| 84 | PROVIDE (__u_boot_cmd_start = .); |
| 85 | .u_boot_cmd : |
| 86 | { |
| 87 | *(.u_boot_cmd) |
| 88 | . = ALIGN(4); |
| 89 | } |
| 90 | PROVIDE (__u_boot_cmd_end = .); |
| 91 | |
Wolfgang Denk | 61fb15c5 | 2007-12-27 01:52:50 +0100 | [diff] [blame] | 92 | PROVIDE (reloc_dst_end = .); |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 93 | /* _reloc_dst_end = .; */ |
| 94 | |
| 95 | PROVIDE (bss_start = .); |
| 96 | PROVIDE (__bss_start = .); |
Wolfgang Denk | 64134f0 | 2008-01-12 20:31:39 +0100 | [diff] [blame^] | 97 | .bss (NOLOAD) : |
Nobuhiro Iwamatsu | 6c0bbdc | 2007-09-23 02:31:13 +0900 | [diff] [blame] | 98 | { |
| 99 | *(.bss) |
| 100 | . = ALIGN(4); |
| 101 | } |
| 102 | PROVIDE (bss_end = .); |
| 103 | |
| 104 | PROVIDE (_end = .); |
| 105 | } |