From e28bacf5785e4c1b3f7c6fc219163dbec9b8addb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 24 Jul 1999 22:17:17 +0000 Subject: Update. * elf/Makefile (dl-routines): Add preinit. * elf/Versions [ld.so] (GLIBC_2.2): Export _dl_preinit_next. * elf/link.h (struct link_map): Add new field l_preinitcount. * elf/dl-preinit.c: New file. * elf/dynamic-link.h: Initialize l_preinitcount. * sysdeps/i386/dl-machine.h (RTLD_START): Call pre-init functions. --- elf/link.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'elf/link.h') diff --git a/elf/link.h b/elf/link.h index cda739df99..d3a54fc011 100644 --- a/elf/link.h +++ b/elf/link.h @@ -211,6 +211,10 @@ struct link_map /* Collected information about own RUNPATH directories. */ struct r_search_path_elem **l_runpath_dirs; + + /* Number of pre-constructors. We compute this during loading to avoid + duplication of this during the possibly many calls to _dl_init_next. */ + unsigned int l_preinitcount; }; #endif /* link.h */ -- cgit v1.2.3