From: Marek Behun Date: Thu, 11 Mar 2021 20:41:04 +0100 Subject: [PATCH u-boot 18/39] build: LTO: move platform libs into --start-group list In-Reply-To: References: <20210307042538.21229-1-marek.behun@nic.cz> <20210307042538.21229-19-marek.behun@nic.cz> Message-ID: <20210311204104.713e371b@nic.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 9 Mar 2021 23:24:01 +0800 Bin Meng wrote: > On Sun, Mar 7, 2021 at 12:26 PM Marek Beh?n wrote: > > > > When building with LTO, move $(PLATFORM_LIBS) into the --start-group / > > --end-group list. > > This should be --whole-archive > > > Otherwise some functions declared in assembly may not be resolved and > > linking may fail. > > I am not sure if this is caused by we build these lib functions with -flto? It is caused by using thin archives, not LTO