This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
ELF empty hash table: howto?
- From: "Carmelo Amoroso" <carmelo73 at gmail dot com>
- To: libc-alpha at gnu dot org
- Date: Wed, 26 Sep 2007 14:02:11 +0200
- Subject: ELF empty hash table: howto?
Hi All,
I'm just wondering how could happen having into an elf binary and
empty hash table
(sysv or gnu style doesn't care).
Just to understand a check present into elf/do-lookup.h:do_lookup_x
/* If the hash table is empty there is nothing to do here. */
if (map->l_nbuckets == 0)
continue;
Is there a case in which the binutils could create an empty hash
table, so this check?
Looking at the CVS history, it seems that this check has been added
when the GNU hash
support was included into the ld.do, but for my understanding, it
seems not be striclty
related to any specific hash style, is it right?
Thanks in advance for any explanation.
Kind regards,
Carmelo