All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm: Make the LTO conditions in arch/arm/config.mk take effect
@ 2026-10-13  7:43 Josef Schlehofer
  2026-10-13  7:43 ` [PATCH 1/2] arm: Keep --gc-sections with LTO Josef Schlehofer
  2026-10-13  7:43 ` [PATCH 2/2] Makefile: Set LTO_ENABLE before including config.mk Josef Schlehofer
  0 siblings, 2 replies; 3+ messages in thread
From: Josef Schlehofer @ 2026-10-13  7:43 UTC (permalink / raw)
  To: u-boot

As requested in the review of the mpc85xx LTO series [1], this sets
LTO_ENABLE before the top Makefile reads arch/arm/config.mk, so that
U-Boot proper of the ARM LTO boards is no longer built with
-ffunction-sections -fdata-sections.

The first patch keeps --gc-sections, which the same change would
otherwise drop for LTO with the private libgcc, making most of these
images larger.

[1] https://lore.kernel.org/u-boot/20261012190720.GF3722450@bill-the-cat/

Josef Schlehofer (2):
  arm: Keep --gc-sections with LTO
  Makefile: Set LTO_ENABLE before including config.mk

 Makefile           | 14 +++++++-------
 arch/arm/config.mk |  2 --
 2 files changed, 7 insertions(+), 9 deletions(-)


base-commit: 5e3b01c8466dbe45cd6a06299f8f4c7e8c1c2363
-- 
2.54.0 (Apple Git-157)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-13  7:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13  7:43 [PATCH 0/2] arm: Make the LTO conditions in arch/arm/config.mk take effect Josef Schlehofer
2026-10-13  7:43 ` [PATCH 1/2] arm: Keep --gc-sections with LTO Josef Schlehofer
2026-10-13  7:43 ` [PATCH 2/2] Makefile: Set LTO_ENABLE before including config.mk Josef Schlehofer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.