Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 3 | * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 4 | * |
Masahiro Yamada | afc3929 | 2014-06-20 16:40:14 +0900 | [diff] [blame] | 5 | * Copyright (C) 2008-2009 |
| 6 | * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> |
| 7 | * |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 8 | * Copyright (C) 2008 |
| 9 | * Mark Jonas <mark.jonas@de.bosch.com> |
Wolfgang Denk | 1aeed8d | 2008-04-13 09:59:26 -0700 | [diff] [blame] | 10 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 11 | * SPDX-License-Identifier: GPL-2.0+ |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") |
| 15 | OUTPUT_ARCH(sh) |
| 16 | ENTRY(_start) |
| 17 | |
| 18 | SECTIONS |
| 19 | { |
| 20 | /* |
Jean-Christophe PLAGNIOL-VILLARD | 236aad8 | 2009-06-04 12:06:44 +0200 | [diff] [blame] | 21 | * entry and reloct_dst will be provided via ldflags |
| 22 | */ |
| 23 | . = .; |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 24 | |
| 25 | PROVIDE (_ftext = .); |
| 26 | PROVIDE (_fcode = .); |
| 27 | PROVIDE (_start = .); |
| 28 | |
| 29 | .text : |
| 30 | { |
Masahiro Yamada | afc3929 | 2014-06-20 16:40:14 +0900 | [diff] [blame] | 31 | KEEP(*/start.o (.text)) |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 32 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 0cf4fd3 | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 33 | common/env_embedded.o (.ppcenv) |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 34 | . = ALIGN(8192); |
Jean-Christophe PLAGNIOL-VILLARD | 0cf4fd3 | 2008-09-10 22:48:01 +0200 | [diff] [blame] | 35 | common/env_embedded.o (.ppcenvr) |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 36 | . = ALIGN(8192); |
| 37 | *(.text) |
| 38 | . = ALIGN(4); |
| 39 | } =0xFF |
| 40 | PROVIDE (_ecode = .); |
| 41 | .rodata : |
| 42 | { |
Trent Piepho | f62fb99 | 2009-02-18 15:22:05 -0800 | [diff] [blame] | 43 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 44 | . = ALIGN(4); |
| 45 | } |
| 46 | PROVIDE (_etext = .); |
| 47 | |
| 48 | |
| 49 | PROVIDE (_fdata = .); |
| 50 | .data : |
| 51 | { |
| 52 | *(.data) |
| 53 | . = ALIGN(4); |
| 54 | } |
| 55 | PROVIDE (_edata = .); |
| 56 | |
| 57 | PROVIDE (_fgot = .); |
| 58 | .got : |
| 59 | { |
| 60 | *(.got) |
| 61 | . = ALIGN(4); |
| 62 | } |
| 63 | PROVIDE (_egot = .); |
| 64 | |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 65 | |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 66 | .u_boot_list : { |
Albert ARIBAUD | ef123c5 | 2013-02-25 00:59:00 +0000 | [diff] [blame] | 67 | KEEP(*(SORT(.u_boot_list*))); |
Marek Vasut | 5567514 | 2012-10-12 10:27:03 +0000 | [diff] [blame] | 68 | } |
| 69 | |
Simon Glass | f41e608 | 2016-05-14 18:49:29 -0600 | [diff] [blame] | 70 | PROVIDE (__init_end = .); |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 71 | PROVIDE (reloc_dst_end = .); |
| 72 | /* _reloc_dst_end = .; */ |
| 73 | |
| 74 | PROVIDE (bss_start = .); |
| 75 | PROVIDE (__bss_start = .); |
| 76 | .bss : |
| 77 | { |
| 78 | *(.bss) |
| 79 | . = ALIGN(4); |
| 80 | } |
| 81 | PROVIDE (bss_end = .); |
| 82 | |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 83 | PROVIDE (__bss_end = .); |
Mark Jonas | 3313e0e | 2008-03-10 11:37:10 +0100 | [diff] [blame] | 84 | } |