On Fri, May 20, 2022 at 10:10:40PM +0800, Peng Fan (OSS) wrote:

> From: Peng Fan <peng....@nxp.com>
> 
> set the symbol as weak not work if LTO is enabled. Since u_boot_any is
> only used on X86 for now, so guard it with X86, otherwise build break
> if we use BINMAN_SYMBOLS on i.MX.
> 
> Tested-by: Tim Harvey <thar...@gateworks.com> #imx8m[m,n,p]-venice
> Signed-off-by: Peng Fan <peng....@nxp.com>
> ---
>  common/spl/spl.c     | 8 ++++++--
>  common/spl/spl_ram.c | 4 ++++
>  2 files changed, 10 insertions(+), 2 deletions(-)

I think we long term need to figure this out and address it so LTO
works.  But for now can you please guard this with a test on LTO
instead, so it's clear where the problem is?

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to