aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-03-07 16:36:14 -0500
committerTom Rini <trini@konsulko.com>2023-03-07 16:36:14 -0500
commit24554419c3da2a3028b54cb77d938600d741a5a0 (patch)
tree309e46d921aaa3fd4e06dd882a799a82566fbe2e
parent3b3c870d87476c1bdcfe5fc762a01d926a4e5365 (diff)
downloadu-boot-CHECK/check-lto-for-all-arm.zip
u-boot-CHECK/check-lto-for-all-arm.tar.gz
u-boot-CHECK/check-lto-for-all-arm.tar.bz2
arm: Enable LTO by defaultCHECK/check-lto-for-all-arm
At this point, we have had wide enough testing of LTO on ARM platforms that we should have covered all of the issues that linking in manner exposes in terms of run-time failures. Enable this by default, on ARM. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kconfig b/Kconfig
index a75cce7..fdf02b1 100644
--- a/Kconfig
+++ b/Kconfig
@@ -121,6 +121,7 @@ config ARCH_SUPPORTS_LTO
config LTO
bool "Enable Link Time Optimizations"
depends on ARCH_SUPPORTS_LTO
+ default y if ARM
help
This option enables Link Time Optimization (LTO), a mechanism which
allows the compiler to optimize between different compilation units.