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:
@@ -181,7 +181,7 @@ int main(int argc, char **argv) {
|
|||||||
if (4!=sscanf(line, "%lx:%lx %s %lx", &grp, &start, symname, &rva))
|
if (4!=sscanf(line, "%lx:%lx %s %lx", &grp, &start, symname, &rva))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (!(codeseg_flags & (1<<grp)))
|
if (!(codeseg_flags & (1<<grp)) && strcmp(symname, "___ImageBase") )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
RVAEnt entry = { rva, strdup(line) };
|
RVAEnt entry = { rva, strdup(line) };
|
||||||
|
|||||||
Reference in New Issue
Block a user