Fixed gnuhash fix. Takes into account ELFCLASS of the binary instead of
ltrace #defines.
This commit is contained in:
parent
c468e10c94
commit
8b29a3cdc5
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user