[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/28918] ld can find the a function reference
From: |
qiaopengcheng at loongson dot cn |
Subject: |
[Bug ld/28918] ld can find the a function reference |
Date: |
Sat, 13 May 2023 07:22:34 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28918
--- Comment #2 from 乔鹏程 <qiaopengcheng at loongson dot cn> ---
(In reply to Alan Modra from comment #1)
> Testcase unavailable
(1)You can clone the `https://github.com/shushanhf/runtime`
(2)git apply this patch file:
```
diff --git a/eng/common/native/init-compiler.sh
b/eng/common/native/init-compiler.sh
index 517401b688b..813adec3ada 100644
--- a/eng/common/native/init-compiler.sh
+++ b/eng/common/native/init-compiler.sh
@@ -126,11 +126,11 @@ if [ -z "$CC" ]; then
fi
# Only lld version >= 9 can be considered stable. lld doesn't support s390x.
-if [ "$compiler" = "clang" ] && [ -n "$majorVersion" ] && [ "$majorVersion"
-ge 9 ] && [ "$build_arch" != "s390x" ]; then
- if "$CC" -fuse-ld=lld -Wl,--version >/dev/null 2>&1; then
- LDFLAGS="-fuse-ld=lld"
- fi
-fi
+#if [ "$compiler" = "clang" ] && [ -n "$majorVersion" ] && [ "$majorVersion"
-ge 9 ] && [ "$build_arch" != "s390x" ]; then
+# if "$CC" -fuse-ld=lld -Wl,--version >/dev/null 2>&1; then
+# LDFLAGS="-fuse-ld=lld"
+# fi
+#fi
SCAN_BUILD_COMMAND="$(command -v "scan-build$desired_version")"
```
(3)enter the directory `cd runtime/src/coreclr/`
(4)`./build-runtime.sh gcc -debug -skipmanaged -nopgooptimize
-skipcrossarchnative `
--
You are receiving this mail because:
You are on the CC list for the bug.