검색

이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 5. elfutils

download PDF

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.187. 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
NameDescription

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-12-elfutils package and is automatically installed with devtoolset-12-toolchain as described in Section 1.5, “Installing Red Hat Developer Toolset”.

5.2. Using elfutils

To execute any of the tools that are part of elfutils, run the tool as follows:

$ scl enable devtoolset-12 'tool option ... file_name'

See Table 5.1, “Tools Included in elfutils for Red Hat Developer Toolset” for a list of tools that are distributed with elfutils. For example, to use the eu-objdump tool to inspect an object file:

$ scl enable devtoolset-12 'eu-objdump option ... object_file'

Note that you can execute any command using the scl utility, causing it to be run with the Red Hat Developer Toolset binaries used in preference to the Red Hat Enterprise Linux system equivalent. This allows you to run a shell session with Red Hat Developer Toolset binary tools as default:

$ scl enable devtoolset-12 'bash'
Note

To verify the version of elfutils you are using at any point:

$ which eu-objdump

Red Hat Developer Toolset’s eu-objdump executable path will begin with /opt. Alternatively, you can use the following command to confirm that the version number matches that for Red Hat Developer Toolset eu-objdump:

$ eu-objdump -V

5.3. Additional Resources

For more information about elfutils, see the resources listed below.

See Also

Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.