1/* 2 * Copyright (C) 2007 3 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 4 * 5 * Copyright (C) 2008-2009 6 * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> 7 * 8 * Copyright (C) 2008 9 * Mark Jonas <mark.jonas@de.bosch.com> 10 * 11 * SPDX-License-Identifier: GPL-2.0+ 12 */ 13 14#include "config.h" 15 16OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux") 17OUTPUT_ARCH(sh) 18ENTRY(_start) 19 20SECTIONS 21{ 22 reloc_dst = .; 23 24 PROVIDE (_ftext = .); 25 PROVIDE (_fcode = .); 26 PROVIDE (_start = .); 27 28 .text : 29 { 30 KEEP(*/start.o (.text)) 31 KEEP(CONFIG_BOARDDIR/lowlevel_init.o (.text .spiboot1.text)) 32 KEEP(*(.spiboot2.text)) 33 . = ALIGN(8192); 34 common/env_embedded.o (.ppcenv) 35 . = ALIGN(8192); 36 common/env_embedded.o (.ppcenvr) 37 . = ALIGN(8192); 38 *(.text) 39 . = ALIGN(4); 40 } =0xFF 41 PROVIDE (_ecode = .); 42 .rodata : 43 { 44 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) 45 . = ALIGN(4); 46 } 47 PROVIDE (_etext = .); 48 49 50 PROVIDE (_fdata = .); 51 .data : 52 { 53 *(.data) 54 . = ALIGN(4); 55 } 56 PROVIDE (_edata = .); 57 58 PROVIDE (_fgot = .); 59 .got : 60 { 61 *(.got) 62 . = ALIGN(4); 63 } 64 PROVIDE (_egot = .); 65 66 67 .u_boot_list : { 68 KEEP(*(SORT(.u_boot_list*))); 69 } 70 71 PROVIDE (__init_end = .); 72 PROVIDE (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 83 PROVIDE (__bss_end = .); 84} 85