From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66C1DC433EF for ; Fri, 22 Oct 2021 19:25:15 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 94E496109D for ; Fri, 22 Oct 2021 19:25:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 94E496109D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nic.cz Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EFD4E832AF; Fri, 22 Oct 2021 21:25:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=nic.cz header.i=@nic.cz header.b="pUophFJS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D9A39834C5; Fri, 22 Oct 2021 21:25:08 +0200 (CEST) Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D1A00833B1 for ; Fri, 22 Oct 2021 21:25:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nic.cz Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=marek.behun@nic.cz Received: from thinkpad (unknown [172.20.6.87]) by mail.nic.cz (Postfix) with ESMTPSA id 57D88140E72; Fri, 22 Oct 2021 21:25:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1634930704; bh=Gt1j8Q6Joh/BdZ2LTGhT+Dg8rgpwrxe4QczGa3Dv68A=; h=Date:From:To; b=pUophFJSKw9H5xHGmCI9BV1RjIEClMWwu8L76/c8oC52hWrEjoo9zcGRsixcUq7iV m8P0OtZ7wuOpQJ40zDpHmHtCS+UuSvRk281P1uYqCzSataXmiPte16bWY+XtcCT3Hd 4Hlxl7TBWsQ01xtMEEPtzGoPK70OzFcldXUDgZ74= Date: Fri, 22 Oct 2021 21:25:03 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Patrick DELAUNAY Cc: U-Boot Mailing List , Tom Rini , Simon Glass , Patrice CHOTARD , Marek Vasut , U-Boot STM32 Subject: Re: Question: LTO and failing objcopy in "u-boot-initial-env" target Message-ID: <20211022212503.087dd056@thinkpad> In-Reply-To: <927b122e-1f62-e790-f5ca-30bae4332c77@foss.st.com> References: <927b122e-1f62-e790-f5ca-30bae4332c77@foss.st.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Fri, 22 Oct 2021 17:16:18 +0200 Patrick DELAUNAY wrote: > Hi, >=20 >=20 > I made tests with LTO option activated on stm32mp15 boards but if have a= =20 > issue >=20 > with the U-Boot target=C2=A0 "u-boot-initial-env" (this command used by Y= OCTO) >=20 >=20 > $> make u-boot-initial-env =20 >=20 > ... >=20 > GENENV=C2=A0 u-boot-initial-env > arm-none-linux-gnueabihf-objcopy: env/common.o: can't dump section=20 > '.rodata.default_environment' - it does not exist: file format not=20 > recognized > sed: can't read u-boot-initial-env: No such file or directory > make[1]: *** [/local/home/frq07632/views/u-boot/Makefile:2315:=20 > u-boot-initial-env] Error 2 > make[1]: Leaving directory=20 > '/local/home/frq07632/views/build/stm32mp15_defconfig' > make: *** [Makefile:177: sub-make] Error 2 >=20 >=20 > But I reproduced it with sandbox: >=20 > $> make sandbox_defconfig =20 >=20 > $> make all =20 >=20 > $> make u-boot-initial-env =20 >=20 > .... >=20 > =C2=A0 LTO=C2=A0=C2=A0=C2=A0=C2=A0 u-boot > =C2=A0 OBJCOPY u-boot-nodtb.bin > =C2=A0 COPY=C2=A0=C2=A0=C2=A0 u-boot.bin > =C2=A0 GENENV=C2=A0 u-boot-initial-env > objcopy: env/common.o: can't dump section '.rodata.default_environment'=20 > - it does not exist: file format not recognized > sed: can't read u-boot-initial-env: No such file or directory > make: *** [Makefile:2315: u-boot-initial-env] Error 2 >=20 >=20 >=20 > Do you already know this issue for other board which activate the LTO=20 > feature ? >=20 > I don't see any remarks about this issue on mailing list. >=20 > Today I am known how to solve this issue. >=20 >=20 > PS: The same command is executed in "scripts/get_default_envs.sh" Seems that that script isn't executed in code integration, otherwise I would have noticed this.