Try harder to decompress Mach-O I386, too.
modified: p_mach.cpp modified: p_mach.h
This commit is contained in:
@@ -1938,6 +1938,12 @@ upx_uint64_t PackMachBase<T>::getEntryVMA(Mach_command const *ptr)
|
||||
return ptr->cmd; // FIXME must be specialized
|
||||
}
|
||||
|
||||
upx_uint64_t PackMachI386::getEntryVMA(Mach_command const *ptr)
|
||||
{
|
||||
Mach_thread_command const *tc = (Mach_thread_command const *)ptr;
|
||||
return tc->state.eip;
|
||||
}
|
||||
|
||||
upx_uint64_t PackMachAMD64::getEntryVMA(Mach_command const *ptr)
|
||||
{
|
||||
Mach_thread_command const *tc = (Mach_thread_command const *)ptr;
|
||||
|
||||
Reference in New Issue
Block a user