From b525885a79c9110621e0808edf4b68d1bc2cc3a5 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 19 Sep 2023 17:40:22 -0700 Subject: go-runtime: Do not use LLD linker It ends up with go linker crashes later in influxdb e.g. but many other go apps get the same issue. Signed-off-by: Khem Raj --- conf/nonclangable.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index d4b0a31..f430b0e 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -573,6 +573,8 @@ LDFLAGS:append:pn-pmdk:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES' # it happens when libstd.so is linked with lld for aarch64 LDFLAGS:append:pn-go-runtime:toolchain-clang:aarch64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}" LDFLAGS:remove:pn-go-runtime:toolchain-clang:aarch64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}" +LDFLAGS:append:pn-go-runtime:toolchain-clang:x86-64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}" +LDFLAGS:remove:pn-go-runtime:toolchain-clang:x86-64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}" # See https://github.com/llvm/llvm-project/issues/65017 LDFLAGS:append:pn-libfaketime:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}" LDFLAGS:remove:pn-libfaketime:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}" -- cgit v1.2.3-54-g00ecf