Red Hat Training

A Red Hat training course is available for Red Hat Developer Toolset

Chapter 5. elfutils

elfutils is a collection of various binary tools, such as eu-objdump, eu-readelf, and other utilities that allow you to inspect and manipulate ELF files. See Table 5.1, “Tools Included in elfutils for Red Hat Developer Toolset” for a complete list of binary tools that are distributed with the Red Hat Developer Toolset version of elfutils.
Red Hat Developer Toolset is distributed with elfutils 0.168. This version is more recent than the version included the previous release of Red Hat Developer Toolset and provides some bug fixes and enhancements.

Table 5.1. Tools Included in elfutils for Red Hat Developer Toolset

Name Description
eu-addr2line Translates addresses into file names and line numbers.
eu-ar Creates, modifies, and extracts files from archives.
eu-elfcmp Compares relevant parts of two ELF files for equality.
eu-elflint Verifies that ELF files are compliant with the generic ABI (gABI) and processor-specific supplement ABI (psABI) specification.
eu-findtextrel Locates the source of text relocations in files.
eu-make-debug-archive Creates an offline archive for debugging.
eu-nm Lists symbols from object files.
eu-objdump Displays information from object files.
eu-ranlib Generates an index to the contents of an archive to make access to this archive faster.
eu-readelf Displays information about ELF files.
eu-size Lists section sizes of object or archive files.
eu-stack A new utility for unwinding processes and cores.
eu-strings Displays printable character sequences in files.
eu-strip Discards all symbols from object files.
eu-unstrip Combines stripped files with separate symbols and debug information.

5.1. Installing elfutils

In Red Hat Developer Toolset, elfutils is provided by the devtoolset-6-elfutils package and is automatically installed with devtoolset-6-toolchain as described in Section 1.5, “Installing Red Hat Developer Toolset”.