summaryrefslogtreecommitdiffstats
path: root/chrome_elf/ntdll_cache.h
diff options
context:
space:
mode:
authorcaitkp@chromium.org <caitkp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 21:01:10 +0000
committercaitkp@chromium.org <caitkp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-18 21:01:10 +0000
commit37f2029c42d56e0d7a868eda1e2f2c62897fb9b0 (patch)
tree32e03a7d0b05b0e1a3e0ef9c7644f1746e0b5ef9 /chrome_elf/ntdll_cache.h
parenta34f61ee4f3ebc44edc4d144f892841c1e99619a (diff)
downloadchromium_src-37f2029c42d56e0d7a868eda1e2f2c62897fb9b0.zip
chromium_src-37f2029c42d56e0d7a868eda1e2f2c62897fb9b0.tar.gz
chromium_src-37f2029c42d56e0d7a868eda1e2f2c62897fb9b0.tar.bz2
Make chrome_elf use thunks instead of function pointers.
1. Add functionality to ServiceResolverThunk to copy a thunk without patching. 2. Move chrome_elf thunk-handling code to a common location. 3. Use a thunk instead of a f'n ptr for redirects. BUG=334379 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255151 Review URL: https://codereview.chromium.org/183833004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_elf/ntdll_cache.h')
-rw-r--r--chrome_elf/ntdll_cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome_elf/ntdll_cache.h b/chrome_elf/ntdll_cache.h
index 4608cf19..5e4fb2b 100644
--- a/chrome_elf/ntdll_cache.h
+++ b/chrome_elf/ntdll_cache.h
@@ -7,9 +7,15 @@
#include "chrome_elf/chrome_elf_types.h"
+namespace sandbox {
+struct ThunkData;
+}
+
// Caches the addresses of all functions exported by ntdll in |g_ntdll_lookup|.
void InitCache();
extern FunctionLookupTable g_ntdll_lookup;
+extern sandbox::ThunkData g_nt_thunk_storage;
+
#endif // CHROME_ELF_NTDLL_CACHE_H_