Hi devel:

I have a question about ELF convert to PE format:

In the function WriteSections64, after the section is copied, it will apply the relocation. I found that the address that needs to be modified in the PE file is the same as the ELF file, because the address is determined in the linking step, so I don't know why the code is fixing the address in the PE file? Maybe an ELF file have multiple .text or .data sections, while a PE file should merge sections with the same name? Or some other reason?

I tried use the GenFw with -v option, the log like:


All of the Addend and Relocation are the same.

Hope someone can answer me. :)

Thanks,

Chao Li