[PATCH] configs: at91: sama5d2_icp_mmc: Enable CONFIG_LTO
Tom Rini
trini at konsulko.com
Thu Apr 27 16:38:18 CEST 2023
On Thu, Apr 27, 2023 at 11:26:46AM +0200, Stefan Roese wrote:
> Hi Eugen,
>
> On 4/27/23 11:19, Eugen Hristev wrote:
> > Hi Stefan,
> >
> > Thank you for the patch.
> >
> > This I guess is a workaround such that you can add a bit more of code.
> > In the end, it's not scalable, and we have to find a better way,
> > probably by removing some of the code to make the SPL smaller.
>
> U-Boot image size increase resulting in overflowing some limits is
> a common problem, especially in SPL. Enabling LTO gives quite some good
> improvements in image size decrease. So I don't think it's an
> workaround.
>
> > How does this impact the size? How much we are gaining ?
>
> I did not measure this. I just checked that this target compiles clean
> again with LTO enabled and the MMC related patches applied.
Note that buildman already has flags to tell you how much the size
changed and in what functions between commits.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230427/b782da4c/attachment.sig>
More information about the U-Boot
mailing list