[PATCH] m68k: Add LTO support
Daniel Palmer
daniel at thingy.jp
Sun Mar 15 09:36:33 CET 2026
Hi Kuan-Wei,
On Sat, 14 Mar 2026 at 01:56, Kuan-Wei Chiu <visitorckw at gmail.com> wrote:
> > +ifneq ($(LTO_ENABLE)$(CONFIG_USE_PRIVATE_LIBGCC),yy)
> > +LDFLAGS_FINAL += --gc-sections
> > +endif
>
> Maybe add a comment saying why we must drop --gc-sections when both LTO
> and private libgcc are enabled?
mm I'm not sure actually, I think we always have private libgcc. I
don't think a comment is needed because --gc-sections doesn't make
sense with LTO as far as I know because LTO will cause unneeded stuff
to get dropped either way.
Other issues noted. I'll fix and send a v2 after a little bit.
Cheers,
Daniel
More information about the U-Boot
mailing list