Executable Formats: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
splitting "Executable File Types"
fixed acronym
Line 9: Line 9:
* BSS is "un-initialized" data.
* BSS is "un-initialized" data.


The BSS (Below Stack Segment) needn't to be present in an executable file. At load-time, the loader will still allocate memory for it and ''wipes'' this memory with zeros (this is assumed by C programs, for instance).
The BSS (Block Started by Symbol) needn't to be present in an executable file. At load-time, the loader will still allocate memory for it and ''wipes'' this memory with zeros (this is assumed by C programs, for instance).


If you're looking for comprehensive informations, consider using the [http://www.wotsit.org/ Programmer's File Format Collection] and the [http://www.iecc.com/linker/ Linkers and Loaders] online book... You can also check [http://perso.wanadoo.fr/pierrelib/exec_formats/index.html Pierre's Library]
If you're looking for comprehensive informations, consider using the [http://www.wotsit.org/ Programmer's File Format Collection] and the [http://www.iecc.com/linker/ Linkers and Loaders] online book... You can also check [http://perso.wanadoo.fr/pierrelib/exec_formats/index.html Pierre's Library]

Revision as of 05:30, 11 March 2007

Template:Convert

The number of different executable file types is as many and varied as the number of different image and sound file formats. Every Operating System seems to have several executable file types unique to itself. This part of the FAQ will give a brief rundown on the various types you will come across.

A quick intro to a few terms:

  • TEXT is the actual executable code area,
  • DATA is "initialized" data,
  • BSS is "un-initialized" data.

The BSS (Block Started by Symbol) needn't to be present in an executable file. At load-time, the loader will still allocate memory for it and wipes this memory with zeros (this is assumed by C programs, for instance).

If you're looking for comprehensive informations, consider using the Programmer's File Format Collection and the Linkers and Loaders online book... You can also check Pierre's Library