Skip to content

Executable file format

compiler编译生成的executable ,会按照固定的format来保存,这是本章讨论讨论的问题。

wikipedia Comparison of executable file formats

This is a comparison of binary executable file formats which, once loaded by a suitable executable loader, can be directly executed by the CPU rather than become interpreted by software. In addition to the binary application code, the executables may contain headers and tables with relocation and fixup information as well as various kinds of meta data. Among those formats listed, the ones in most common use are PE (on Microsoft Windows), ELF (on Linux and most other versions of Unix), Mach-O (on macOS and iOS) and MZ (on DOS).

NOTE:As soon as I saw the loader, I thought of a loader in celery.

wikipedia Weak symbol

wikipedia Executable and Linkable Format