From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 20 May 2021 11:51:58 -0600 Subject: [PATCH u-boot v4 15/36] build: link with --build-id=none In-Reply-To: <20210520112425.25166-16-marek.behun@nic.cz> References: <20210520112425.25166-1-marek.behun@nic.cz> <20210520112425.25166-16-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: > > Some toolchains are compiled so that they pass a --build-id=something > parameter to the linker implicitly. > > This causes U-Boot LTO linking to fail with something like: > ld: section .note.gnu.build-id LMA ... overlaps section .text LMA ... > because U-Boot's link scripts do not currently handle .note.gnu.build-id > section. > > Fix this by explicitly disabling build-id. > > Signed-off-by: Marek Beh?n > --- > Makefile | 2 ++ > scripts/Makefile.spl | 2 ++ > 2 files changed, 4 insertions(+) Reviewed-by: Simon Glass