[RSYM/x64] Allow binaries without symbol table

This commit is contained in:
Hervé Poussineau 2021-02-22 14:30:22 +01:00
parent 4c930799f1
commit c6730a4a87

View file

@ -769,12 +769,6 @@ ParsePEHeaders(PFILE_INFO File)
+ sizeof(IMAGE_FILE_HEADER)
+ File->FileHeader->SizeOfOptionalHeader;
if (!File->FileHeader->PointerToSymbolTable)
{
fprintf(stderr, "No symbol table.\n");
return -1;
}
/* Create some shortcuts */
File->ImageBase = File->OptionalHeader->ImageBase;
File->Symbols = File->FilePtr + File->FileHeader->PointerToSymbolTable;