Always include the "___ImageBase" symbol, so the first RVA entry

is always (hopefully) the base of the EXE.  That way, we can display
consistent offsets relative to that.
This commit is contained in:
Glenn Maynard
2006-03-29 04:45:12 +00:00
parent 6faf9b9b69
commit e7d45c189b
+1 -1
View File
@@ -181,7 +181,7 @@ int main(int argc, char **argv) {
if (4!=sscanf(line, "%lx:%lx %s %lx", &grp, &start, symname, &rva))
break;
if (!(codeseg_flags & (1<<grp)))
if (!(codeseg_flags & (1<<grp)) && strcmp(symname, "___ImageBase") )
continue;
RVAEnt entry = { rva, strdup(line) };