mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
fixed relocation handling regression in win32/pe (issue #38)
This commit is contained in:
parent
c7cb036536
commit
67797efead
|
@ -266,9 +266,9 @@ void PackW32Pe::defineSymbols(unsigned ncsection, unsigned upxsection,
|
|||
//linker->dumpSymbols();
|
||||
}
|
||||
|
||||
void PackW32Pe::addNewRelocations(Reloc &rel, unsigned)
|
||||
void PackW32Pe::addNewRelocations(Reloc &rel, unsigned base)
|
||||
{
|
||||
rel.add(linker->getSymbolOffset("PEMAIN01") + 2, 3);
|
||||
rel.add(base + linker->getSymbolOffset("PEMAIN01") + 2, 3);
|
||||
}
|
||||
|
||||
void PackW32Pe::setOhDataBase(const pe_section_t *osection)
|
||||
|
|
Loading…
Reference in New Issue
Block a user