blob: c60336ca5ca839ab0bef3ed39a188e4eb6792808 [file] [log] [blame]
Michal Simek9d242742014-01-21 07:30:37 +01001/*
2 * (C) Copyright 2013 - 2014 Xilinx, Inc
3 *
4 * Michal Simek <michal.simek@xilinx.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9#include <asm-offsets.h>
10
11OUTPUT_ARCH(microblaze)
12ENTRY(_start)
13
14SECTIONS
15{
16 .text ALIGN(0x4):
17 {
18 __text_start = .;
19 arch/microblaze/cpu/start.o (.text)
20 *(.text)
21 *(.text.*)
22 __text_end = .;
23 }
24
25 .rodata ALIGN(0x4):
26 {
27 __rodata_start = .;
28 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
29 __rodata_end = .;
30 }
31
32 .data ALIGN(0x4):
33 {
34 __data_start = .;
35 *(.data)
36 *(.data.*)
37 __data_end = .;
38 }
39
Michal Simek7f338992015-02-03 15:09:52 +010040 . = ALIGN(4);
41 .u_boot_list : {
42 KEEP(*(SORT(.u_boot_list*)));
43 }
44 __init_end = . ;
45
Michal Simek9d242742014-01-21 07:30:37 +010046 .bss ALIGN(0x4):
47 {
48 __bss_start = .;
49 *(.sbss)
50 *(.scommon)
51 *(.bss)
52 *(.bss.*)
53 *(COMMON)
54 . = ALIGN(4);
55 __bss_end = .;
56 }
57 __end = . ;
58}
59
60#if defined(CONFIG_SPL_MAX_FOOTPRINT)
61ASSERT(__end - _start < (CONFIG_SPL_MAX_FOOTPRINT), \
62 "SPL image plus BSS too big");
63#endif