mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-25 14:50:26 +00:00
COFF: /delayload:<DLLNAME> is case-insensitive.
llvm-svn: 246770
This commit is contained in:
parent
491a1bd998
commit
6295b27184
@ -379,7 +379,7 @@ void Writer::createImportTables() {
|
||||
for (ImportFile *File : Symtab->ImportFiles) {
|
||||
if (DefinedImportThunk *Thunk = File->ThunkSym)
|
||||
Text->addChunk(Thunk->getChunk());
|
||||
if (Config->DelayLoads.count(File->DLLName)) {
|
||||
if (Config->DelayLoads.count(StringRef(File->DLLName).lower())) {
|
||||
DelayIdata.add(File->ImpSym);
|
||||
} else {
|
||||
Idata.add(File->ImpSym);
|
||||
|
@ -1,5 +1,5 @@
|
||||
# RUN: lld-link /out:%t.exe /entry:main /subsystem:console \
|
||||
# RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib /delayload:std64.DLL \
|
||||
# RUN: %p/Inputs/hello64.obj %p/Inputs/std64.lib /delayload:STD64.DLL \
|
||||
# RUN: /alternatename:__delayLoadHelper2=main
|
||||
# RUN: llvm-readobj -coff-imports %t.exe | FileCheck -check-prefix=IMPORT %s
|
||||
# RUN: llvm-readobj -coff-basereloc %t.exe | FileCheck -check-prefix=BASEREL %s
|
||||
|
Loading…
Reference in New Issue
Block a user