From 8b29a3cdc57c786821e5bc0401c4b035309e1960 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 14 Jul 2006 22:50:16 +0000 Subject: [PATCH] Fixed gnuhash fix. Takes into account ELFCLASS of the binary instead of ltrace #defines. --- ltrace-0.5-gnuhash.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ltrace-0.5-gnuhash.patch b/ltrace-0.5-gnuhash.patch index 10d0142..84e0e89 100644 --- a/ltrace-0.5-gnuhash.patch +++ b/ltrace-0.5-gnuhash.patch @@ -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;