-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[COFF] Avoid loading objects for mingw autoimport, when a defined ali…
…as exists This avoids a spurious and confusing log message in cases where both e.g. "alias" and "__imp_alias" exist. Differential Revision: https://reviews.llvm.org/D65598 llvm-svn: 367673
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# REQUIRES: x86 | ||
|
||
# RUN: llvm-mc -filetype=obj -triple=x86_64-mingw32 -o %t.o %s | ||
# RUN: lld-link -lldmingw -entry:main -out:%t.exe %t.o %S/Inputs/alias-implib.lib -verbose 2>&1 | FileCheck %s | ||
|
||
# Check that the undefined (weak) alias symbol (with an existing lazy | ||
# __imp_alias) doesn't trigger trying to load __imp_alias for autoimport, | ||
# when the weak alias target actually does exist. | ||
|
||
# CHECK-NOT: Loading lazy{{.*}}for automatic import | ||
|
||
.text | ||
.globl main | ||
main: | ||
call alias | ||
ret | ||
|
||
# alias-implib.lib was created with "llvm-dlltool -m i386:x86-64 | ||
# -l alias-implib.lib -d alias-implib.def" with this def snippet: | ||
# LIBRARY lib.dll | ||
# EXPORTS | ||
# realfunc | ||
# alias == realfunc |