This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]