mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 12:46:14 +02:00
armv8: Support not having separate BSS
Separate BSS is current mandatory on armv8 but this is not useful for early boot phases. Add support for the combined BSS. Use an #ifdef to avoid using CONFIG_SPL_BSS_START_ADDR which is not valid in this case. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
5d93d8137d
commit
a3403e6fbf
@ -13,8 +13,10 @@
|
||||
|
||||
MEMORY { .sram : ORIGIN = IMAGE_TEXT_BASE,
|
||||
LENGTH = IMAGE_MAX_SIZE }
|
||||
#ifdef CONFIG_SPL_SEPARATE_BSS
|
||||
MEMORY { .sdram : ORIGIN = CONFIG_SPL_BSS_START_ADDR,
|
||||
LENGTH = CONFIG_SPL_BSS_MAX_SIZE }
|
||||
#endif
|
||||
|
||||
OUTPUT_FORMAT("elf64-littleaarch64", "elf64-littleaarch64", "elf64-littleaarch64")
|
||||
OUTPUT_ARCH(aarch64)
|
||||
@ -56,12 +58,22 @@ SECTIONS
|
||||
_end = .;
|
||||
_image_binary_end = .;
|
||||
|
||||
#ifdef CONFIG_SPL_SEPARATE_BSS
|
||||
.bss : {
|
||||
__bss_start = .;
|
||||
*(.bss*)
|
||||
. = ALIGN(8);
|
||||
__bss_end = .;
|
||||
} >.sdram
|
||||
#else
|
||||
.bss (NOLOAD) : {
|
||||
__bss_start = .;
|
||||
*(.bss*)
|
||||
. = ALIGN(8);
|
||||
__bss_end = .;
|
||||
} >.sram
|
||||
#endif
|
||||
__bss_size = __bss_end - __bss_start;
|
||||
|
||||
/DISCARD/ : { *(.rela*) }
|
||||
/DISCARD/ : { *(.dynsym) }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user