diff options
author | Simon Glass <sjg@chromium.org> | 2021-01-24 20:06:06 +0300 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2021-02-01 10:33:24 +0300 |
commit | 76baecf6702bfb6ccf9fb316edc4b6737fa6602c (patch) | |
tree | 58e6f8588d3a45794160f2c6704bfe7df124bbfb | |
parent | 37c664e82534ad84d2f7c06ce7d6459fa6bd24ae (diff) | |
download | u-boot-76baecf6702bfb6ccf9fb316edc4b6737fa6602c.tar.xz |
x86: spl: Make moving BSS conditional
At present BSS is always placed in SDRAM. If a separate BSS is not in use
this means that BSS doesn't work as expected. Make the setting conditional
on the SEPARATE_BSS option.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
-rw-r--r-- | arch/x86/cpu/u-boot-spl.lds | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/cpu/u-boot-spl.lds b/arch/x86/cpu/u-boot-spl.lds index ead4f380e7..b82e53ab12 100644 --- a/arch/x86/cpu/u-boot-spl.lds +++ b/arch/x86/cpu/u-boot-spl.lds @@ -57,7 +57,9 @@ SECTIONS _image_binary_end = .; +#if CONFIG_IS_ENABLED(SEPARATE_BSS) . = 0x120000; +#endif .bss (OVERLAY) : { __bss_start = .; *(.bss*) |