1
0
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:
László Molnár 2016-12-30 23:18:32 +01:00
parent c7cb036536
commit 67797efead

View File

@ -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)