|
From: Jeremy F. <je...@go...> - 2005-01-14 09:04:47
|
CVS commit by fitzhardinge:
Fix some tiny bugs which prevented Valgrind from running static executables.
M +4 -0 ume.c 1.39
--- valgrind/coregrind/ume.c #1.38:1.39
@@ -306,4 +306,5 @@ static int load_ELF(char *hdr, int len,
info->phnum = e->e.e_phnum;
info->entry = e->e.e_entry + ebase;
+ info->phdr = 0;
for(i = 0; i < e->e.e_phnum; i++) {
@@ -374,4 +375,7 @@ static int load_ELF(char *hdr, int len,
}
+ if (info->phdr == 0)
+ info->phdr = minaddr + e->e.e_phoff;
+
if (info->exe_base != info->exe_end) {
if (minaddr >= maxaddr ||
|