From 5e2891795021a78fb975c55377d05919f4dae0c0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 19 Dec 2002 00:03:48 +0000 Subject: Update. 2002-12-18 Ulrich Drepper * elf/dl-support.c [NEED_DL_SYSINFO]: Define and initialize _dl_sysinfo. [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed code. * elf/rtld.c [DL_NEED_SYSINFO]: Initialize _dl_sysinfo element of _rtld_global. [DL_SYSINFO_IMPLEMENTATION]: If defined use it to generate the needed code. * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]: Check for AT_SYSINFO and set _dl_sysinfo appropriately. * sysdeps/generic/ldsodefs.h (struct rtld_global) [NEED_DL_SYSINFO]: Add _dl_sysinfo. --- elf/rtld.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'elf/rtld.c') diff --git a/elf/rtld.c b/elf/rtld.c index a93be8447e..a05034ee71 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -96,6 +96,9 @@ struct rtld_global _rtld_global = groups implemented we have to make this the default. Bummer. --drepper */ ._dl_dynamic_weak = 1, +#endif +#ifdef NEED_DL_SYSINFO + ._dl_sysinfo = DL_SYSINFO_DEFAULT, #endif ._dl_lazy = 1, ._dl_fpu_control = _FPU_DEFAULT, @@ -132,6 +135,11 @@ static hp_timing_t start_time; TLS_INIT_HELPER #endif +/* Helper function for syscall implementation. */ +#ifdef DL_SYSINFO_IMPLEMENTATION +DL_SYSINFO_IMPLEMENTATION +#endif + /* Before ld.so is relocated we must not access variables which need relocations. This means variables which are exported. Variables declared as static are fine. If we can mark a variable hidden this -- cgit 1.4.1