[PATCH u-boot v4 15/36] build: link with --build-id=none
Simon Glass
sjg at chromium.org
Thu May 20 19:51:58 CEST 2021
On Thu, 20 May 2021 at 05:25, Marek Behún <marek.behun at nic.cz> 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>
> ---
> Makefile | 2 ++
> scripts/Makefile.spl | 2 ++
> 2 files changed, 4 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list