[lld] [LLD][ELF] ignore ".so" in search path when relocatable set (PR #94965)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 13 23:52:00 PDT 2024


================
@@ -49,6 +49,9 @@
 // RUN: ld.lld -o %t3 %t.o -L%t.dir -lls
 // RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=DYNAMIC %s
 
+// Should use static when dynamic exists in search path
+// RUN: ld.lld --relocatable -o %t3 %t.o -L%t.dir -lls
----------------
MaskRay wrote:

We should test the symbol table of output file. Newer tests prefer `llvm-readelf -s` to `llvm-readobj -s`

https://maskray.me/blog/2021-08-08-toolchain-testing#the-test-checks-too-little

https://github.com/llvm/llvm-project/pull/94965


More information about the llvm-commits mailing list