On Wednesday 11 December 2024 15:33:44 Martin Storsjö wrote: > I see that do_pedef changes cases for both IMAGE_DIRECTORY_ENTRY_IMPORT and > IMAGE_DIRECTORY_ENTRY_EXPORT, but do_pepdef only changes cases for > IMAGE_DIRECTORY_ENTRY_EXPORT. Is there no matching case for > IMAGE_DIRECTORY_ENTRY_IMPORT for PE+ binaries?
Due to symbol mangling (STDCALL, FASTCALL, CDECL) on I386, the gendef tool for I386 has to look also at import table and try to parse data from def files for dependent libraries defined in import table. This allows gendef to check if som exported symbol is redirected directly to some imported symbol, needs to have STDCALL mangling or not. For all other architectures, there is no STDCALL/CDECL mangling, so gendef for PE+ binaries do not have to look at import table at all. _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public