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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") |
| 9 | OUTPUT_ARCH(sh) |
| 10 | ENTRY(_start) |
| 11 | |
| 12 | SECTIONS |
| 13 | { |
| 14 | /* |
Jean-Christophe PLAGNIOL-VILLARD | 6e74389 | 2009-06-04 12:06:44 +0200 | [diff] [blame] | 15 | * entry and reloct_dst will be provided via ldflags |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 16 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 6e74389 | 2009-06-04 12:06:44 +0200 | [diff] [blame] | 17 | . = .; |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 18 | |
| 19 | PROVIDE (_ftext = .); |
| 20 | PROVIDE (_fcode = .); |
| 21 | PROVIDE (_start = .); |
| 22 | |
| 23 | .text : |
| 24 | { |
Nobuhiro Iwamatsu | cb4148c | 2011-03-07 16:36:21 +0900 | [diff] [blame] | 25 | KEEP(arch/sh/cpu/sh2/start.o (.text)) |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 26 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 27 | common/env_embedded.o (.ppcenv) |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 28 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 4436c1e | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 29 | common/env_embedded.o (.ppcenvr) |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 30 | . = ALIGN(8192); |
| 31 | *(.text) |
| 32 | . = ALIGN(4); |
| 33 | } =0xFF |
| 34 | PROVIDE (_ecode = .); |
| 35 | .rodata : |
| 36 | { |
Trent Piepho | 4438e5e | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 37 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 38 | . = ALIGN(4); |
| 39 | } |
| 40 | PROVIDE (_etext = .); |
| 41 | |
| 42 | |
| 43 | PROVIDE (_fdata = .); |
| 44 | .data : |
| 45 | { |
| 46 | *(.data) |
| 47 | . = ALIGN(4); |
| 48 | } |
| 49 | PROVIDE (_edata = .); |
| 50 | |
| 51 | PROVIDE (_fgot = .); |
| 52 | .got : |
| 53 | { |
| 54 | *(.got) |
| 55 | . = ALIGN(4); |
| 56 | } |
| 57 | PROVIDE (_egot = .); |
| 58 | |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 59 | |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 60 | .u_boot_list : { |
Albert ARIBAUD | c24895e | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 61 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 607092a | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 62 | } |
| 63 | |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 64 | PROVIDE (reloc_dst_end = .); |
| 65 | |
| 66 | PROVIDE (bss_start = .); |
| 67 | PROVIDE (__bss_start = .); |
| 68 | .bss : |
| 69 | { |
| 70 | *(.bss) |
| 71 | . = ALIGN(4); |
| 72 | } |
| 73 | PROVIDE (bss_end = .); |
| 74 | |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 75 | PROVIDE (__bss_end = .); |
Nobuhiro Iwamatsu | 6f7d436 | 2008-08-31 23:02:04 +0900 | [diff] [blame] | 76 | } |