You can open the binaries first! Do not be afraid of this, you only need the right tools! Being binary data, a text editor, of course, is not the right tool; the right tool can be a hex editor or an advanced editor such as emacs, or a tool that instead of just “outputting” bytes in their “hexadecimal” representation and letting you know this particular format alone and “correctly interpret” the data on at some level (for example, GIMP interprets a PNG file as an image and displays it, the PNG analyzer "decomposes" the data in PNG sections, showing you flags in certain bytes, ..., etc.).
In your case, the general answer is that the object file contains your compiled code (and data), as well as all the additional information the linker needs, and ultimately more.
How these informational "organized", and in some cases - in what it means "ultimately more", it depends on the specific format of the object. Some wikipedia links listing some of the features, this , this , this , this ...
Each of them may have its own tools for analyzing content; for example readelf for ELF, objdump for several formats (try objdump -i ) depending on how it was compiled.
ShinTakezou Jun 15 '10 at 14:13 2010-06-15 14:13
source share