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