ELFCAT(1)

NAME
elfcat - dump sections, segments of an ELF file

SYNOPSIS
elfcat [--help] [--version] [--section-name name] [--section-index index] [--program-index file ...] [elf-names]

DESCRIPTION
elfcat dumps requested parts (sections and segments) of an ELF file (executable, shared object, .o file) to stdout.

Dumping sections can be achieved with "objcopy --dump-section" but this tools relies on BFD which abstracts all executable files and is not able to see some ELF sections. Morever it cannot handle program header table entries.

Supported options are:
--help
    Help
--version
    Version information
--section-name name
    Dump a section with a given name.
--section-index index
    Dump a section found by its index in the section table.
--program-index
    Dump a part of the ELF file described by a program header found by its index.

EXIT STATUS
If everything goes well, elfcat exits with 0. If anything bad happens, it exits with a nonzero value.

EXAMPLES

    elfcat --section-name .dynstr /bin/sh | tr '\000' '\n'

Print the content of the dynamic string table. Each entry is terminated by a NUL byte in the FILE so we use "tr" in order to display it in a more human-friendly form.

SEE ALSO
Git repo: https://github.com/randomstuff/elfcat/

STANDARDS
System V Application Binary Interface, Edition 4.1: http://www.sco.com/developers/devspecs/gabi41.pdf

AUTHORS
Written by -nosplit Gabriel Corona and Kamil Rytarowski.

Copyright (C) 2016 Gabriel Corona. MIT License.