Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Michal Simek | 26acb3e | 2014-01-21 07:30:37 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2013 - 2014 Xilinx, Inc |
| 4 | * |
Michal Simek | a8c9436 | 2023-07-10 14:35:49 +0200 | [diff] [blame] | 5 | * Michal Simek <michal.simek@amd.com> |
Michal Simek | 26acb3e | 2014-01-21 07:30:37 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <asm-offsets.h> |
| 9 | |
| 10 | OUTPUT_ARCH(microblaze) |
| 11 | ENTRY(_start) |
| 12 | |
| 13 | SECTIONS |
| 14 | { |
| 15 | .text ALIGN(0x4): |
| 16 | { |
| 17 | __text_start = .; |
| 18 | arch/microblaze/cpu/start.o (.text) |
| 19 | *(.text) |
| 20 | *(.text.*) |
| 21 | __text_end = .; |
| 22 | } |
| 23 | |
| 24 | .rodata ALIGN(0x4): |
| 25 | { |
| 26 | __rodata_start = .; |
| 27 | *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) |
| 28 | __rodata_end = .; |
| 29 | } |
| 30 | |
| 31 | .data ALIGN(0x4): |
| 32 | { |
| 33 | __data_start = .; |
| 34 | *(.data) |
| 35 | *(.data.*) |
| 36 | __data_end = .; |
| 37 | } |
| 38 | |
Michal Simek | fb089f0 | 2015-02-03 15:09:52 +0100 | [diff] [blame] | 39 | . = ALIGN(4); |
Andrew Scull | 5a9095c | 2022-05-30 10:00:04 +0000 | [diff] [blame] | 40 | __u_boot_list : { |
| 41 | KEEP(*(SORT(__u_boot_list*))); |
Michal Simek | fb089f0 | 2015-02-03 15:09:52 +0100 | [diff] [blame] | 42 | } |
| 43 | __init_end = . ; |
| 44 | |
Michal Simek | 26acb3e | 2014-01-21 07:30:37 +0100 | [diff] [blame] | 45 | .bss ALIGN(0x4): |
| 46 | { |
| 47 | __bss_start = .; |
| 48 | *(.sbss) |
| 49 | *(.scommon) |
| 50 | *(.bss) |
| 51 | *(.bss.*) |
| 52 | *(COMMON) |
| 53 | . = ALIGN(4); |
| 54 | __bss_end = .; |
| 55 | } |
Ovidiu Panait | 76e5113 | 2021-11-30 18:33:49 +0200 | [diff] [blame] | 56 | _end = . ; |
Fabio Estevam | cdc3a86 | 2023-06-30 23:30:52 -0300 | [diff] [blame] | 57 | _image_binary_end = .; |
Michal Simek | 26acb3e | 2014-01-21 07:30:37 +0100 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | #if defined(CONFIG_SPL_MAX_FOOTPRINT) |
Ovidiu Panait | 76e5113 | 2021-11-30 18:33:49 +0200 | [diff] [blame] | 61 | ASSERT(_end - _start <= (CONFIG_SPL_MAX_FOOTPRINT), \ |
Michal Simek | 26acb3e | 2014-01-21 07:30:37 +0100 | [diff] [blame] | 62 | "SPL image plus BSS too big"); |
| 63 | #endif |