From ec967c06ac7474fa58266ea309d6488ee3c53851 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 16 Nov 1995 00:44:18 +0000 Subject: Wed Nov 15 19:22:07 1995 Roland McGrath * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common instead of stdio. (_dl_sysdep_start): If passed user entry is zero and EXEC_STACK_ARGS flag set, reset user entry to &_start. * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a DT_HASH element. * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously repeat weak decl using weak_symbol macro, in case using broken GCC (<2.8). Wed Nov 15 18:49:55 1995 Ulrich Drepper * sysdeps/i386/isnanl.c: New file. * sysdeps/i386/isinfl.c: New file. --- elf/rtld.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'elf/rtld.c') diff --git a/elf/rtld.c b/elf/rtld.c index 9a822a8c66..88f0d6d804 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -226,8 +226,9 @@ of this helper program; chances are you did not intend to run this program.\n", /* Extract the contents of the dynamic section for easy access. */ elf_get_dynamic_info (l->l_ld, l->l_info); - /* Set up our cache of pointers into the hash table. */ - _dl_setup_hash (l); + if (l->l_info[DT_HASH]) + /* Set up our cache of pointers into the hash table. */ + _dl_setup_hash (l); if (l->l_info[DT_DEBUG]) /* There is a DT_DEBUG entry in the dynamic section. Fill it in -- cgit 1.4.1