What are the differences between PE and ELF binary formats?

Issue

What is the difference between Windows PE binary and Linux ELF binary formats? How does a compiler convert a file into the specified format of the operating system when it should only create the assembly language equivalent of the source code? Could somebody explain in brief?

Solution

PE and ELF are just different formats for describing similar information. Neither of them “access the processor”. Both just contain information that is used by an OS to load binary executables. The processor doesn’t really care how executable code gets loaded.

Answered By – TJD

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published