]> git.dujemihanovic.xyz Git - u-boot.git/commit
build: link with --build-id=none
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:04 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commitda48bd9ee5768e9811e4fbbab964c7f9d64fce3d
tree478d8f917782283f6470fac4a1c39ead68be5566
parentc1094987d1dc4701646c5f3aa254e7a92a02d305
build: link with --build-id=none

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@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile
scripts/Makefile.spl