The compiler organizes its object code into sections that the linker arranges when it creates its output file.
To generate an output file, the linker reads from input ELF (Executable and Linkable Format) files generated by compiler and other tools. The linker also reads a linker command file to determine how to build its output file. The linker then writes to its output file, an ELF file. This output file is the executable image, ready to load and run on the target platform.
This chapter explains the sections in the object code of and how to arrange them in the linker's output file: