Skip to content

RFC U-Boot LTO (Sandbox + ARM Nokia RX-51)

Marek Behun u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 12 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 12 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH u-boot 00/12] U-Boot LTO (Sandbox + ARM Nokia RX-51)
Quoted 18 lines · On Thu, 4 Mar 2021 07:46:18 -0600 Adam Ford <[email protected]> wrote:
Quoted 10 lines · Marek Behun
Quoted 5 lines · On Wed, 3 Mar 2021 16:36:05 -0500 Tom Rini <[email protected]> wrote:

So, as I start testing things locally with two additional changes (1. LTO by default 2. No ffunction/data-sections with LTO) we see:
https://gist.github.com/trini/350ab850c42293563228b8d68a1bb89a
as the detailed size reduction. This also shows that with LTO we want to turn off -ffunction-sections/etc as it's not useful now.

Quoted 6 lines

Tom, I have pushed another version to github PR to trigger CI, and am still working on clang. You can look at the github PR if you want to try yourself. I have also added patch that disables -ffunction-section/fdata-section on arm.

After I manage to make it all work in CI I will send v2 to mailing list.

Quoted 8 lines

I tested this with the imx6q_logic board. I only tested the U-Boot portion, but it appeared to work and it booted the kernel. The U-Boot size reduced -7182 bytes (about 3% smaller).

I haven't been able to successfully boot the OMAP3 boards I have yet. I'm still looking into this.

I don't think we should enable LTO by default for all boards yet.

Adam, did you try the current version from github.com/elkablo/u-boot branch lto ?