Listed recently added sections' types (resource, tls) for dumping to
usage strings. Fixed some header size testing.
This commit is contained in:
parent
4446b15c3f
commit
6c9a08099d
|
@ -203,7 +203,7 @@ static const struct option option_table[] = {
|
||||||
{"dump", DUMP, 0, do_dump, "dump <mod> Dumps the content of the module (dll, exe...) named <mod>"},
|
{"dump", DUMP, 0, do_dump, "dump <mod> Dumps the content of the module (dll, exe...) named <mod>"},
|
||||||
{"-C", DUMP, 0, do_symdmngl, "-C Turns on symbol demangling"},
|
{"-C", DUMP, 0, do_symdmngl, "-C Turns on symbol demangling"},
|
||||||
{"-f", DUMP, 0, do_dumphead, "-f Dumps file header information"},
|
{"-f", DUMP, 0, do_dumphead, "-f Dumps file header information"},
|
||||||
{"-j", DUMP, 1, do_dumpsect, "-j sect_name Dumps only the content of section sect_name (import, export, debug)"},
|
{"-j", DUMP, 1, do_dumpsect, "-j sect_name Dumps only the content of section sect_name (import, export, debug, resource, tls)"},
|
||||||
{"-x", DUMP, 0, do_dumpall, "-x Dumps everything"},
|
{"-x", DUMP, 0, do_dumpall, "-x Dumps everything"},
|
||||||
{NULL, NONE, 0, NULL, NULL}
|
{NULL, NONE, 0, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
|
@ -899,7 +899,7 @@ static enum FileSig check_headers(void)
|
||||||
{
|
{
|
||||||
if (*pdw == IMAGE_NT_SIGNATURE)
|
if (*pdw == IMAGE_NT_SIGNATURE)
|
||||||
{
|
{
|
||||||
PE_nt_headers = PRD(dh->e_lfanew, sizeof(DWORD));
|
PE_nt_headers = PRD(dh->e_lfanew, sizeof(DWORD)+sizeof(IMAGE_FILE_HEADER));
|
||||||
sig = SIG_PE;
|
sig = SIG_PE;
|
||||||
}
|
}
|
||||||
else if (*(WORD *)pdw == IMAGE_OS2_SIGNATURE)
|
else if (*(WORD *)pdw == IMAGE_OS2_SIGNATURE)
|
||||||
|
|
Loading…
Reference in New Issue