1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

handle duplicates in ImportLinker

This commit is contained in:
László Molnár 2014-03-06 22:26:41 +01:00
parent 7b8e5d4180
commit 41054a4c56

View File

@ -680,6 +680,8 @@ class PeFile::ImportLinker : public ElfLinkerAMD64
"R_X86_64_32", sdll, 0);
}
tstr thunk(name_for_proc(dll, proc, thunk_id, tsep));
if (findSection(thunk, false) != NULL)
return; // we already have this dll/proc
addSection(thunk, zeros, thunk_size, 0);
addSymbol(thunk, thunk, 0);
if (tsep == thunk_separator_first)