diff options
author | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-15 14:09:19 +0000 |
---|---|---|
committer | nsylvain@chromium.org <nsylvain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-15 14:09:19 +0000 |
commit | 0b8de2362cc5e42f523907c96598f36325e9c6a5 (patch) | |
tree | 19ec496e6d79b4ff6fdc010de7b08c2688608074 /sandbox/src | |
parent | 70853cbee435058ad7ddd1801b66491d56211e4a (diff) | |
download | chromium_src-0b8de2362cc5e42f523907c96598f36325e9c6a5.zip chromium_src-0b8de2362cc5e42f523907c96598f36325e9c6a5.tar.gz chromium_src-0b8de2362cc5e42f523907c96598f36325e9c6a5.tar.bz2 |
For some reasons the linker excludes 2 of our hooks
when linking in SANDBOX_EXPORTS mode. Add pragmas to
be sure these hooks are included.
Review URL: http://codereview.chromium.org/3050
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src')
-rw-r--r-- | sandbox/src/interception.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sandbox/src/interception.cc b/sandbox/src/interception.cc index 70808d2..198cdbf 100644 --- a/sandbox/src/interception.cc +++ b/sandbox/src/interception.cc @@ -314,6 +314,10 @@ bool InterceptionManager::PatchNtdll(bool hot_patch_needed) { if (hot_patch_needed) { #if SANDBOX_EXPORTS + // Make sure the functions are not excluded by the linker. + #pragma comment(linker, "/include:_TargetNtMapViewOfSection@44") + #pragma comment(linker, "/include:_TargetNtUnmapViewOfSection@12") + AddToPatchedFunctions(kNtdllName, kMapViewOfSectionName, INTERCEPTION_SERVICE_CALL, "_TargetNtMapViewOfSection@44"); |