Hi Brian,
no, TF-M does not use it (on purpose), i.e. if GCC enables it by default, the impact of LTO has not been assessed.
Thanks, Antonio
From: Quach, Brian via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Tuesday, April 1, 2025 16:01
To: tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.org>
Subject: [TF-M] Link Time Optimization
Hi, does TF-M use LTO? I didn’t see any flags to disable it in toolchain_GNUARM.cmake. I think for GCC, it’s enabled by default if no flag is set.
Regards,
Brian Quach
SimpleLink MCU
Texas Instruments Inc.
12500 TI Blvd, MS F-4000
Dallas, TX 75243
214-479-4076