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

Bin Meng bmeng.cn at gmail.com
Tue Mar 9 16:24:01 CET 2021


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?

>
> Signed-off-by: Marek Behún <marek.behun at nic.cz>
> ---
>  Makefile             | 3 ++-
>  scripts/Makefile.spl | 3 ++-
>  2 files changed, 4 insertions(+), 2 deletions(-)
>

Regards,
Bin


More information about the U-Boot mailing list