Move VDSO pointers to a shared globals struct.
Change-Id: I01cbc9cf0917dc1fac52d9205bda2c68529d12ef
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
#include "base/strings.h"
|
||||
#include "ziparchive/zip_archive.h"
|
||||
|
||||
extern void __libc_init_globals(KernelArgumentBlock&);
|
||||
extern void __libc_init_AT_SECURE(KernelArgumentBlock&);
|
||||
|
||||
// Override macros to use C++ style casts.
|
||||
@@ -3579,6 +3580,9 @@ extern "C" ElfW(Addr) __linker_init(void* raw_args) {
|
||||
|
||||
__libc_init_main_thread(args);
|
||||
|
||||
// Initialize the linker's static libc's globals
|
||||
__libc_init_globals(args);
|
||||
|
||||
// Initialize the linker's own global variables
|
||||
linker_so.call_constructors();
|
||||
|
||||
|
Reference in New Issue
Block a user