Linker and Libraries Guide

Overview

This chapter describes the executable and linking format (ELF) of the object files produced by the assembler and link-editor. There are three main types of object files:

The first section in this chapter, "File Format", focuses on the format of object files and how that pertains to building programs. The second section, "Dynamic Linking", focuses on how the format pertains to loading programs.

Programs manipulate object files with the functions contained in the ELF access library, libelf. Refer to elf(3E) for a description of libelf contents. Sample source code that uses libelf is provided in the SUNWosdem package under the /usr/demo/ELF directory.