Fixed gnuhash fix. Takes into account ELFCLASS of the binary instead of

ltrace #defines.
This commit is contained in:
Petr Machata 2006-07-14 22:50:16 +00:00
parent c468e10c94
commit 8b29a3cdc5

View File

@ -90,7 +90,7 @@ diff -urpd ltrace-0.5-orig/elf.c ltrace-0.5/elf.c
- if (gelf_getsym(lte[i].dynsym, symndx, &sym) == NULL)
- error(EXIT_FAILURE, 0,
- "Couldn't get symbol from .dynsym");
+ hashbase += LT_ELFCLASS * bitmask_nwords;
+ hashbase += lte[i].ehdr.e_ident[EI_CLASS] * bitmask_nwords;
+ buckets = hashbase;
+ hashbase += nbuckets;
+ chain_zero = hashbase - symbias;