diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-10-05 10:20:39 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-10-05 10:20:39 -0700 |
commit | 9cee55856438b714fa1efa45d8b7c1857467f4ca (patch) | |
tree | 450926ee00a192c70e6591d5fa4ebeded76d02f1 /elf/dl-support.c | |
parent | 28234b077ec6667b5dd0a6b60c6d8dbd9e28f6e1 (diff) | |
download | glibc-9cee55856438b714fa1efa45d8b7c1857467f4ca.zip glibc-9cee55856438b714fa1efa45d8b7c1857467f4ca.tar.gz glibc-9cee55856438b714fa1efa45d8b7c1857467f4ca.tar.bz2 |
Set up the data structures for vDSO in libc.a
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r-- | elf/dl-support.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c index 2bb468a..424ca6d 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -161,6 +161,11 @@ uintptr_t _dl_sysinfo = DL_SYSINFO_DEFAULT; #if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO /* Address of the ELF headers in the vsyscall page. */ const ElfW(Ehdr) *_dl_sysinfo_dso; + +struct link_map *_dl_sysinfo_map; + +# include "get-dynamic-info.h" +# include "setup-vdso.h" #endif /* During the program run we must not modify the global data of @@ -266,6 +271,10 @@ _dl_non_dynamic_init (void) _dl_verbose = *(getenv ("LD_WARN") ?: "") == '\0' ? 0 : 1; + /* Set up the data structures for the system-supplied DSO early, + so they can influence _dl_init_paths. */ + setup_vdso (NULL, NULL); + /* Initialize the data structures for the search paths for shared objects. */ _dl_init_paths (getenv ("LD_LIBRARY_PATH")); |