[PATCH u-boot v4 15/36] build: link with --build-id=none

Tom Rini trini at konsulko.com
Tue May 25 02:55:38 CEST 2021


On Thu, May 20, 2021 at 01:24:04PM +0200, 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 <marek.behun at nic.cz>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210524/22000577/attachment.sig>


More information about the U-Boot mailing list