[PATCH u-boot 18/39] build: LTO: move platform libs into --start-group list

Marek Behun marek.behun at nic.cz
Thu Mar 11 20:41:04 CET 2021


On Tue, 9 Mar 2021 23:24:01 +0800
Bin Meng <bmeng.cn at gmail.com> wrote:

> On Sun, Mar 7, 2021 at 12:26 PM Marek Behún <marek.behun at nic.cz> wrote:
> >
> > When building with LTO, move $(PLATFORM_LIBS) into the --start-group /
> > --end-group list.  
> 
> This should be --whole-archive
> 
> > Otherwise some functions declared in assembly may not be resolved and
> > linking may fail.  
> 
> I am not sure if this is caused by we build these lib functions with -flto?

It is caused by using thin archives, not LTO


More information about the U-Boot mailing list