diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-07-31 21:22:40 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-11 18:04:25 +0100 |
commit | 2a3ec280604e97cce0c4fcdaba2cc54e249c89e8 (patch) | |
tree | 58334d0b4d5e6d74b795cba66a1603c2eb481145 | |
parent | dd7fa90e0dfe11f013bdd5b691385c15257cc899 (diff) | |
download | poky-2a3ec280604e97cce0c4fcdaba2cc54e249c89e8.tar.gz |
binutils-cross-canadian: Always use GNU linker
LLD fails to link gprofng
aarch64-yoesdk-linux-ld.lld: error: version script assignment of 'GLIBC_2.0' to symbol 'dlclose' failed: symbol not defined
aarch64-yoesdk-linux-ld.lld: error: version script assignment of 'GLIBC_2.0' to symbol 'dlopen' failed: symbol not defined
aarch64-yoesdk-linux-ld.lld: error: version script assignment of 'GLIBC_2.0' to symbol 'fclose' failed: symbol not defined
aarch64-yoesdk-linux-ld.lld: error: version script assignment of 'GLIBC_2.0' to symbol 'fdopen' failed: symbol not defined
aarch64-yoesdk-linux-ld.lld: error: version script assignment of 'GLIBC_2.0' to symbol 'fgetpos' failed: symbol not defined
aarch64-yoesdk-linux-ld.lld: error: version script assignment of 'GLIBC_2.0' to symbol 'fopen' failed: symbol not defined
aarch64-yoesdk-linux-ld.lld: error: version script assignment of 'GLIBC_2.0' to symbol 'fsetpos' failed: symbol not defined
(From OE-Core rev: 2ba5473dd7747a51e611638b712b2b5a10485dbe)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc index c1fda1a465..7d7ffe92ce 100644 --- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc +++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc | |||
@@ -13,6 +13,11 @@ EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VEND | |||
13 | # e.g. we switch between different machines with different tunes. | 13 | # e.g. we switch between different machines with different tunes. |
14 | EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH" | 14 | EXTRA_OECONF[vardepsexclude] = "TUNE_PKGARCH" |
15 | 15 | ||
16 | # lld complains | ||
17 | # aarch64-yoesdk-linux-ld.lld: error: version script assignment of 'GLIBC_2.0' to symbol 'dlclose' failed: symbol not defined | ||
18 | |||
19 | LDFLAGS:append:toolchain-clang = " -fuse-ld=bfd" | ||
20 | |||
16 | do_install () { | 21 | do_install () { |
17 | autotools_do_install | 22 | autotools_do_install |
18 | 23 | ||