From beb5387cf656c281f9cc81d6a04f1085fe534c9a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 11 Jan 2001 17:50:24 +0000 Subject: Update. 2001-01-10 H.J. Lu * elf/dl-libc.c (do_dlopen): Call DL_STATIC_INIT for static binaries. * sysdeps/unix/sysv/linux/ia64/Makefile (sysdep-dl-routines): Add dl-static. * sysdeps/unix/sysv/linux/ia64/Versions (ld): Add _dl_var_init. * sysdeps/generic/ldsodefs.h (DL_STATIC_INIT): Defined if not defined. * sysdeps/unix/sysv/linux/ia64/ldsodefs.h: New file. * sysdeps/unix/sysv/linux/ia64/dl-static.c: New file. * sysdeps/unix/sysv/linux/ia64/Dist: Add dl-static.c. --- sysdeps/generic/ldsodefs.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index d7ce4d0..7d9907b 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -1,5 +1,5 @@ /* Run-time dynamic linker data structures for loaded ELF shared objects. - Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -81,6 +81,12 @@ typedef ElfW(Addr) lookup_t; (map)->l_map_end - (map)->l_map_start) #endif +/* By default we do not need special support to initialize DSOs loaded + by statically linked binaries. */ +#ifndef DL_STATIC_INIT +# define DL_STATIC_INIT(map) +#endif + /* For the version handling we need an array with only names and their hash values. */ struct r_found_version -- cgit v1.1