From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 20 May 2021 11:52:08 -0600 Subject: [PATCH u-boot v4 35/36] ARM: don't use --gc-sections with LTO when using private libgcc In-Reply-To: <20210520112425.25166-36-marek.behun@nic.cz> References: <20210520112425.25166-1-marek.behun@nic.cz> <20210520112425.25166-36-marek.behun@nic.cz> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 20 May 2021 at 05:25, Marek Beh?n wrote: > > When using LTO, we can throw away the --gc-sections flag, but only if > using private libgcc. > > When using system's libgcc, --gc-sections is still needed, otherwise > linking will fail due to undefined references to libc's symbols. > > Signed-off-by: Marek Beh?n > --- > arch/arm/config.mk | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass