From 3504bb650f48534549bbd0313dc15fa71455e302 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 10 Nov 2004 09:02:52 +0000 Subject: Updated to fedora-glibc-20041110T0839 --- elf/dl-support.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'elf/dl-support.c') diff --git a/elf/dl-support.c b/elf/dl-support.c index 88378a60a6..cfe01babbf 100644 --- a/elf/dl-support.c +++ b/elf/dl-support.c @@ -136,6 +136,8 @@ int (*_dl_make_stack_executable_hook) (void **) internal_function #ifdef NEED_DL_SYSINFO /* Needed for improved syscall handling on at least x86/Linux. */ uintptr_t _dl_sysinfo = DL_SYSINFO_DEFAULT; +#endif +#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; #endif @@ -183,6 +185,11 @@ _dl_aux_init (ElfW(auxv_t) *av) case AT_SYSINFO: GL(dl_sysinfo) = av->a_un.a_val; break; +#endif +#if defined NEED_DL_SYSINFO || defined NEED_DL_SYSINFO_DSO + case AT_SYSINFO_EHDR: + GL(dl_sysinfo_dso) = av->a_un.a_ptr; + break; #endif case AT_UID: uid ^= av->a_un.a_val; -- cgit v1.2.3-70-g09d2