u-boot-brain/arch/sh
Thomas Petazzoni f40ad66fa0 arch/sh: don't bring common/env_embedded.o into the link
The linker script for SuperH brings the .ppcenv and .ppcenvr section
of common/env_embedded.o into the .text section. However, the .ppcenv
section is only ever filled in by env_embedded.o when
CONFIG_SYS_USE_PPCENV is defined, but no platforms in mainline U-Boot
use this.

In addition, common/env_embedded.o is not always built (when you use
CONFIG_ENV_IS_NOWHERE for example), which causes the following build
failure:

Fixes:

  LD      u-boot
/home/thomas/sh4aeb-linux-musl/bin/sh4aeb-linux-ld.bfd: cannot find common/env_embedded.o

We fix this by no longer adding the .ppcenv and .ppcenvr sections from
common/env_embedded.o into the .text section.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2017-08-26 07:40:36 +09:00
..
cpu arch/sh: don't bring common/env_embedded.o into the link 2017-08-26 07:40:36 +09:00
include/asm sh4: remove __io config options from r2dplus and r7780mp boards 2016-12-02 21:32:44 -05:00
lib env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
config.mk sh: generate position independent code for all platforms 2016-12-02 21:32:54 -05:00
Kconfig env: Convert CONFIG_ENV_IS_IN... to a choice 2017-08-15 20:50:01 -04:00
Makefile sh: share the correct version of start.S among all cpus 2016-12-02 21:32:53 -05:00