[llvm] [lld] [LTO] [LLD] Don't alias the __imp_func and func symbol resolutions (PR #71376)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 18 00:27:43 PST 2023


================
@@ -0,0 +1,54 @@
+; REQUIRES: x86
+; RUN: split-file %s %t.dir
+
+; RUN: llvm-as %t.dir/main.ll -o %t.main.bc
+; RUN: llvm-as %t.dir/other.ll -o %t.other.bc
+; RUN: llc %t.dir/main.ll -o %t.main.obj --filetype=obj
+; RUN: llc %t.dir/other.ll -o %t.other.obj --filetype=obj
+
+; RUN: lld-link %t.main.obj %t.other.obj -entry:main -out:%t.exe
+; RUN: lld-link %t.main.bc  %t.other.bc  -entry:main -out:%t.exe
+; RUN: lld-link %t.main.obj %t.other.bc  -entry:main -out:%t.exe
+; RUN: lld-link %t.main.bc  %t.other.obj -entry:main -out:%t.exe
+
+;--- main.ll
+; ModuleID = 'a.obj'
----------------
MaskRay wrote:

Remove the incorrect ModuleID comment (main.ll vs a.obj?)

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


More information about the llvm-commits mailing list