U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Josef Schlehofer <pepe.schlehofer@gmail.com>
To: u-boot@lists.u-boot-project.org
Subject: [PATCH 0/2] arm: Make the LTO conditions in arch/arm/config.mk take effect
Date: Tue, 13 Oct 2026 09:43:20 +0200	[thread overview]
Message-ID: <cover.1791877299.git.pepe.schlehofer@gmail.com> (raw)

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)


             reply	other threads:[~2026-10-13  7:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13  7:43 Josef Schlehofer [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1791877299.git.pepe.schlehofer@gmail.com \
    --to=pepe.schlehofer@gmail.com \
    --cc=u-boot@lists.u-boot-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox