summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-09-19 17:40:22 -0700
committerKhem Raj <raj.khem@gmail.com>2023-09-19 19:59:21 -0700
commitb525885a79c9110621e0808edf4b68d1bc2cc3a5 (patch)
tree03d471b5338588c124694d4d576a850c32795025
parentd74313058159f414770826402211a14d75743560 (diff)
downloadmeta-clang-b525885a79c9110621e0808edf4b68d1bc2cc3a5.tar.gz
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 <raj.khem@gmail.com>
-rw-r--r--conf/nonclangable.conf2
1 files changed, 2 insertions, 0 deletions
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'
573# it happens when libstd.so is linked with lld for aarch64 573# it happens when libstd.so is linked with lld for aarch64
574LDFLAGS:append:pn-go-runtime:toolchain-clang:aarch64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}" 574LDFLAGS:append:pn-go-runtime:toolchain-clang:aarch64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}"
575LDFLAGS:remove:pn-go-runtime:toolchain-clang:aarch64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}" 575LDFLAGS:remove:pn-go-runtime:toolchain-clang:aarch64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}"
576LDFLAGS:append:pn-go-runtime:toolchain-clang:x86-64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}"
577LDFLAGS:remove:pn-go-runtime:toolchain-clang:x86-64 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}"
576# See https://github.com/llvm/llvm-project/issues/65017 578# See https://github.com/llvm/llvm-project/issues/65017
577LDFLAGS:append:pn-libfaketime:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}" 579LDFLAGS:append:pn-libfaketime:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' -fuse-ld=bfd', '', d)}"
578LDFLAGS:remove:pn-libfaketime:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}" 580LDFLAGS:remove:pn-libfaketime:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=lld', '', d)}"