8.48. Libelf from Elfutils-0.188

Libelf is a library for handling ELF (Executable and Linkable Format) files.

Approximate build time: 0.3 SBU
Required disk space: 120 MB

8.48.1. Installation of Libelf

Libelf is part of the elfutils-0.188 package. Use the elfutils-0.188.tar.bz2 file as the source tarball.

Prepare Libelf for compilation:

./configure --prefix=/usr                \
            --disable-debuginfod         \
            --enable-libdebuginfod=dummy

Compile the package:

make

To test the results, issue:

make check

The test named run-native-test.sh is known to fail.

Install only Libelf:

make -C libelf install
install -vm644 config/libelf.pc /usr/lib/pkgconfig
rm /usr/lib/libelf.a

8.48.2. Contents of Libelf

Installed Library: libelf.so (symlink) and libelf-0.188.so
Installed Directory: /usr/include/elfutils

Short Descriptions

libelf

Contains API functions to handle ELF object files