[U-Boot] U-Boot SPL and LTO (armv7)

Adam Ford aford173 at gmail.com
Wed Oct 10 17:03:51 UTC 2018


I am wondering if anyone has done any tests using LTO in SPL?  For
those of us with limited resources, I noticed that we're creeping up
in size, especially when using DM in SPL.

I made a few attempts to enable -flto during compile, but the .S files
fail to assemble.  I found some references that indicating not to use
-flto when running the assembler, but we appear to be using CFLAGS for
assembly and I am not entirely sure how to apply -fno-lto to just the
assembly files.

I am focusing on ARMv7 right now, but if anyone has any suggestions or
have started something, on a different architecture, I'd like to
experiment a little.  I am not sure if the LTO will buy us much
anyway, but any little improvement during SPL would be appreciated.

thanks

adam


More information about the U-Boot mailing list