]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: fix LTO for imx28_xea
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:12 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commitb83120df7923eb572ab6d88505f234b6784a2b6b
tree99095d4136de6b5f1cbb1d353c45a43ee8332b4b
parente5fc9037dd3391a63cf6f6f7da015507ae12158d
ARM: fix LTO for imx28_xea

When imx28_xea_defconfig is built with LTO, the compiler complains about
the two different declarations of _start:
   include/asm-generic/sections.h    as  extern void _start(void);
   arch/arm/cpu/arm926ejs/mxs/mxs.c  as  extern uint32_t _start;

Fix this.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/arm/cpu/arm926ejs/mxs/mxs.c
arch/arm/cpu/arm926ejs/mxs/spl_boot.c