Hi Chris,
On 2/2/24 12:17, Chris Kay wrote:
Hi Prasad,
ENABLE_LTO places constraints on the toolchain (both the linker and the compiler must be aligned on the format of the generated object files), so it cannot therefore be configured from the platform makefile, which loads after the toolchain has already been set up.
I get it but on the other hand when we are running out of space. Over years simply TF-A is growing and enabling LTO give us time and space to deprecate, remove some parts to stay inside limits. I am talking about one specific configuration when TF-A runs out of OCM. I don't think toolchain dependency is really a big deal for me. If toolchain doesn't support LTO what can go wrong? I expect size is going to be bigger and it will fail to compile. Or toolchain just failed with unknown flag. For both we can simply simply document this limitation.
If LTO is supported for GCC version X.Y then it should be just fine to describe this dependency and make it mandatory for this configuration only.
What do you think?
Thanks, Michal