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:
parent
7b8e5d4180
commit
41054a4c56
|
@ -680,6 +680,8 @@ class PeFile::ImportLinker : public ElfLinkerAMD64
|
||||||
"R_X86_64_32", sdll, 0);
|
"R_X86_64_32", sdll, 0);
|
||||||
}
|
}
|
||||||
tstr thunk(name_for_proc(dll, proc, thunk_id, tsep));
|
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);
|
addSection(thunk, zeros, thunk_size, 0);
|
||||||
addSymbol(thunk, thunk, 0);
|
addSymbol(thunk, thunk, 0);
|
||||||
if (tsep == thunk_separator_first)
|
if (tsep == thunk_separator_first)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user