From efec50797a13f527967ec8e0113fd9405ec7e7bc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 20 Sep 2004 07:43:16 +0000 Subject: Update. 2004-09-20 Ulrich Drepper * elf/dl-load.c (_dl_map_object_from_fd): Add some error checking. Reorder code slightly. * elf/rtld.c (dl_main): No need to check whether l_info[DT_HASH] is non-null, _dl_setup_hash will do that. --- elf/rtld.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'elf/rtld.c') diff --git a/elf/rtld.c b/elf/rtld.c index 93c45311d4..2daf05a6d6 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -1039,9 +1039,8 @@ 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 (GL(dl_loaded), NULL); - if (GL(dl_loaded)->l_info[DT_HASH]) - /* Set up our cache of pointers into the hash table. */ - _dl_setup_hash (GL(dl_loaded)); + /* Set up our cache of pointers into the hash table. */ + _dl_setup_hash (GL(dl_loaded)); } if (__builtin_expect (mode, normal) == verify) -- cgit v1.2.3