]> git.baikalelectronics.ru Git - uboot.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)
commit0a28a1b0dd209839d8aa9fac0f4ffcde19561006
tree478d8f917782283f6470fac4a1c39ead68be5566
parentc45c9e2232f6d861aaadf068ef559939e64c363e
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