diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-03-26 13:06:12 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-03-26 13:06:12 +0000 |
commit | 05e16a028d26503153a8fe512a500676cad66031 (patch) | |
tree | 2e671e9ee46d936b59a2d72e29ef6926c88f9ba0 /lib/asan/asan_interface_internal.h | |
parent | 09a19b221bc60863bc10f1aad1d210ce9999990c (diff) | |
download | compiler-rt-05e16a028d26503153a8fe512a500676cad66031.tar.gz compiler-rt-05e16a028d26503153a8fe512a500676cad66031.tar.bz2 compiler-rt-05e16a028d26503153a8fe512a500676cad66031.tar.xz |
[ASan] Change the ABI of __asan_before_dynamic_init function: now it takes pointer to private string with module name. This string serves as a unique module ID in ASan runtime. compiler-rt part
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_interface_internal.h')
-rw-r--r-- | lib/asan/asan_interface_internal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/asan/asan_interface_internal.h b/lib/asan/asan_interface_internal.h index d0f3ba95..24f76253 100644 --- a/lib/asan/asan_interface_internal.h +++ b/lib/asan/asan_interface_internal.h @@ -39,7 +39,8 @@ extern "C" { uptr size; // The original size of the global. uptr size_with_redzone; // The size with the redzone. const char *name; // Name as a C string. - const char *module_name; // Module name as a C string. + const char *module_name; // Module name as a C string. This pointer is a + // unique identifier of a module. uptr has_dynamic_init; // Non-zero if the global has dynamic initializer. }; @@ -51,9 +52,8 @@ extern "C" { SANITIZER_INTERFACE_ATTRIBUTE; // These two functions should be called before and after dynamic initializers - // run, respectively. They should be called with parameters describing all - // dynamically initialized globals defined in the calling TU. - void __asan_before_dynamic_init(uptr first_addr, uptr last_addr) + // of a single module run, respectively. + void __asan_before_dynamic_init(const char *module_name) SANITIZER_INTERFACE_ATTRIBUTE; void __asan_after_dynamic_init() SANITIZER_INTERFACE_ATTRIBUTE; |