From: Andreas Schwab Date: Fri, 7 Aug 2009 17:39:55 +0000 (-0700) Subject: Fix expanding STB_GNU_UNIQUE hash table. X-Git-Tag: fedora/glibc-2.10.90-13~1^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc513cf188fe50e21ad88439f294100ffa20f72;p=thirdparty%2Fglibc.git Fix expanding STB_GNU_UNIQUE hash table. An invalid symbol name pointer was entered into the hash table while enlarging it. --- diff --git a/ChangeLog b/ChangeLog index debf530fabc..b0187e0a293 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-08-07 Andreas Schwab + + * elf/dl-lookup.c (do_lookup_x): Enter correct name into table of + unique symbols. + 2009-08-05 H.J. Lu * sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c index 56724c9b4d7..c1a1366d6f1 100644 --- a/elf/dl-lookup.c +++ b/elf/dl-lookup.c @@ -321,7 +321,7 @@ do_lookup_x (const char *undef_name, uint_fast32_t new_hash, if (table[idx].name == NULL) { table[idx].hashval = hash; - table[idx].name = strtab + sym->st_name; + table[idx].name = name; if ((type_class & ELF_RTYPE_CLASS_COPY) != 0) { table[idx].sym = ref;