-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[llvm-dlltool] Use EXPORTAS name type for renamed imports on ARM64EC. #99346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,29 @@ RUN: llvm-nm --print-armap test3.lib | FileCheck --check-prefix=ARMAP2 %s | |
RUN: not llvm-dlltool -m arm64 -d test.def -N test2.def -l test4.lib 2>&1 | FileCheck --check-prefix=ERR %s | ||
ERR: native .def file is supported only on arm64ec target | ||
|
||
RUN: llvm-dlltool -m arm64ec -d test3.def -l test3.lib | ||
RUN: llvm-readobj test3.lib | FileCheck --check-prefix=ALIAS %s | ||
|
||
ALIAS: File: test.dll | ||
ALIAS-NEXT: Format: COFF-import-file-ARM64EC | ||
ALIAS-NEXT: Type: code | ||
ALIAS-NEXT: Name type: export as | ||
ALIAS-NEXT: Export name: efunc | ||
ALIAS-NEXT: Symbol: __imp_func | ||
ALIAS-NEXT: Symbol: func | ||
ALIAS-NEXT: Symbol: __imp_aux_func | ||
ALIAS-NEXT: Symbol: #func | ||
ALIAS-EMPTY: | ||
ALIAS-NEXT: File: test.dll | ||
ALIAS-NEXT: Format: COFF-import-file-ARM64EC | ||
ALIAS-NEXT: Type: code | ||
ALIAS-NEXT: Name type: export as | ||
ALIAS-NEXT: Export name: efunc | ||
ALIAS-NEXT: Symbol: __imp_efunc | ||
ALIAS-NEXT: Symbol: efunc | ||
ALIAS-NEXT: Symbol: __imp_aux_efunc | ||
ALIAS-NEXT: Symbol: #efunc | ||
|
||
#--- test.def | ||
LIBRARY test.dll | ||
EXPORTS | ||
|
@@ -53,3 +76,9 @@ EXPORTS | |
LIBRARY test.dll | ||
EXPORTS | ||
otherfunc | ||
|
||
#--- test3.def | ||
LIBRARY test.dll | ||
EXPORTS | ||
func == efunc | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, isn't this the case that end up using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point, that's a more interesting case. I pushed more tests. FWIW, we were not using weak alias path in that test, but for a wrong reason: we were comparing mangled name to demangled one (and generally skipping mangling fixup). That's no longer a problem with this PR as there are no deferred on EC target. Looking at it again we should probably take |
||
efunc |
Uh oh!
There was an error while loading. Please reload this page.