elfutils-0.161

Introduction to elfutils

The elfutils package contains set of utilities and libraries for handling ELF (Executable and Linkable Format) files.

This package is known to build and work properly using an LFS-7.7 platform.

Package Information

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/elfutils

Installation of elfutils

Install elfutils by running the following commands:

sed -e '/*runp =/,+2d'                           \
    -e '/runp +=/s/r.*;/*runp++ = '\0';/'        \
    -i libelf/elf_begin.c                        &&

./configure --prefix=/usr --program-prefix="eu-" &&
make

If you wish to run the test suite, first fix it to skip two failing tests:

sed -i '/srcdir/ iexit 77\n'         \
       tests/run-backtrace-native.sh \
       tests/run-backtrace-native-core.sh

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

sed ... libelf/elf_begin.c: This command fixes a potiential vulnerability identified upstream.

--program-prefix="eu-": This switch renames installed programs to avoid conflict with Binutils programs installed in LFS.

Contents

Installed Programs: eu-addr2line, eu-ar, eu-elfcmp, eu-elflint, eu-findtextrel, eu-ld, eu-make-debug-archive, eu-nm, eu-objdump, eu-ranlib, eu-readelf, eu-size, eu-stack, eu-strings, eu-strip, and eu-unstrip
Installed Libraries: libasm.{a,so}, libdw.{a,so}, libebl.a, libelf.{a,so}, and some for different architectures under /usr/lib/elfutils
Installed Directories: /usr/include/elfutils and /usr/lib/elfutils

Last updated on 2015-03-03 22:27:20 -0500