Skip to content

Commit

Permalink
Fix the OSX image base address so that binary patches work correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
angavrilov committed Jun 26, 2014
1 parent 6f162a4 commit 17ed08c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Process-darwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void Process::getMemRanges( vector<t_memrange> & ranges )

uintptr_t Process::getBase()
{
return 0x1000000;
return 0x1000;
}

int Process::adjustOffset(int offset, bool /*to_file*/)
Expand Down
2 changes: 1 addition & 1 deletion library/VersionInfoFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void VersionInfoFactory::ParseVersion (TiXmlElement* entry, VersionInfo* mem)
{
mem->setOS(OS_APPLE);
// this is wrong... I'm not going to do base image relocation on linux though.
mem->setBase(0x1000000);
mem->setBase(0x1000);
}
else
{
Expand Down

0 comments on commit 17ed08c

Please sign in to comment.