Closed dscho closed 4 years ago
Looks reasonable to me. Two notes:
you don't have to check the machine type, the FileHeader part is identical across architectures.
maybe the pointer to symbol table should only be erased if it is actually pointing inside the erased section
Okay, thank you for those suggestions. I think I managed to implement both correctly.
This PR is intended to fix https://github.com/rainers/cv2pdb/issues/35:
dumpbin
/objdump
stumble over the output ofcv2pdb
because the resulting.exe
files have information about a symbol table that is not actually there.