summaryrefslogtreecommitdiff
path: root/libc/private/bionic_globals.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/private/bionic_globals.h')
-rw-r--r--libc/private/bionic_globals.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/private/bionic_globals.h b/libc/private/bionic_globals.h
index d73079e33..ef735bab0 100644
--- a/libc/private/bionic_globals.h
+++ b/libc/private/bionic_globals.h
@@ -88,6 +88,10 @@ struct libc_shared_globals {
TlsModules tls_modules;
BionicAllocator tls_allocator;
+ // Values passed from the HWASan runtime (via libc.so) to the loader.
+ void (*load_hook)(ElfW(Addr) base, const ElfW(Phdr)* phdr, ElfW(Half) phnum) = nullptr;
+ void (*unload_hook)(ElfW(Addr) base, const ElfW(Phdr)* phdr, ElfW(Half) phnum) = nullptr;
+
// Values passed from the linker to libc.so.
const char* init_progname = nullptr;
char** init_environ = nullptr;