Move VDSO pointers to a shared globals struct.

Change-Id: I01cbc9cf0917dc1fac52d9205bda2c68529d12ef
This commit is contained in:
Josh Gao
2015-10-06 11:08:13 -07:00
parent 487a1823e8
commit 93c0f5ee00
9 changed files with 243 additions and 64 deletions

View File

@@ -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();