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

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 18 06:01:56 PST 2023


================
@@ -37,3 +39,19 @@ define void @other() {
 entry:
   ret void
 }
+
+;--- other2.ll
+target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-w64-windows-gnu"
+
+ at __imp_importedFunc = global ptr @importedFunc
+
+define void @importedFunc() {
----------------
mstorsjo wrote:

Sure, to clarify that this testcase explicitly tests providing two external symbols from the same object file, with/without prefix.

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


More information about the llvm-commits mailing list