diff options
author | Tom Rini <trini@konsulko.com> | 2017-08-27 11:50:16 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-08-27 11:50:16 -0400 |
commit | 34f98a3d2e10a273bf5b707ce941b4b8c9fc0e87 (patch) | |
tree | 02a59c927c0abcb77455bd70b3717523468d4f54 | |
parent | c3b572c4e29224bb5080a6d29a27d25efb037d4f (diff) | |
download | u-boot-34f98a3d2e10a273bf5b707ce941b4b8c9fc0e87.tar.gz |
sh: Fix linking of ms7722se
While it is true that we no longer have 'ppcenv' and similar sections,
including env/embedded.o at all results in the text/etc sections being
available for the rest of the link. This in turn is required for the
setup used on ms7722se. This also, likely, needs further fine-tuning.
Fixes: f40ad66fa066 ("arch/sh: don't bring common/env_embedded.o into the link")
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | arch/sh/cpu/u-boot.lds | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds index 2f2bdb5b83..db5b14c554 100644 --- a/arch/sh/cpu/u-boot.lds +++ b/arch/sh/cpu/u-boot.lds @@ -38,6 +38,10 @@ SECTIONS KEEP(CONFIG_BOARDDIR/lowlevel_init.o (.text .spiboot1.text)) KEEP(*(.spiboot2.text)) . = ALIGN(8192); +#ifdef CONFIG_ENV_IS_IN_FLASH + env/embedded.o (.doesnotexist) + . = ALIGN(8192); +#endif *(.text) . = ALIGN(4); } >ram =0xFF |