From 17ed08cfe505d09eaa99896551782624ef12cbcf Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 26 Jun 2014 18:28:50 +0400 Subject: [PATCH] Fix the OSX image base address so that binary patches work correctly. --- library/Process-darwin.cpp | 2 +- library/VersionInfoFactory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Process-darwin.cpp b/library/Process-darwin.cpp index 30ed709b8..69ccefcea 100644 --- a/library/Process-darwin.cpp +++ b/library/Process-darwin.cpp @@ -222,7 +222,7 @@ void Process::getMemRanges( vector & ranges ) uintptr_t Process::getBase() { - return 0x1000000; + return 0x1000; } int Process::adjustOffset(int offset, bool /*to_file*/) diff --git a/library/VersionInfoFactory.cpp b/library/VersionInfoFactory.cpp index 7142233d8..1b66b583a 100644 --- a/library/VersionInfoFactory.cpp +++ b/library/VersionInfoFactory.cpp @@ -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 {