hasherezade / exe_to_dll

Converts a EXE into DLL
1.25k stars 188 forks source link

Converting not possible: relocation table missing or invalid! #4

Open ShuHu2015 opened 3 years ago

ShuHu2015 commented 3 years ago

Could you support covert an exe without relocation table? Am I use it in a wrong way ? As we know, most of exe have no relocation table.

hasherezade commented 3 years ago

hi! a PE with no relocation table can be loaded only at one, fixed base address: so it is a serious limitation. a valid DLL must have relocations table in order to be loaded at any given address. relocation table is generated at compile time of the PE, and if it is missing, it cannot be easily added afterwards. that's why this converter doesn't support such files. also it is not true that most EXEs have no relocation table. it was the case in the past, now majority of EXEs do have relocation tables.