Hi Kuan-Wei,

On Sat, 14 Mar 2026 at 01:56, Kuan-Wei Chiu <[email protected]> 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

Reply via email to