12.4. c29readelf - Object File Reader

The c29readelf utility displays low-level, format-specific information about one or more object files.

12.4.1. Usage

c29readelf [options] [filenames …]

  • c29readelf - is the command used to invoke the object file reader.

  • options - affect the behavior of c29readelf.

  • filenames - identifies one or more ELF object files as input to c29readelf. If - is specified as the input file, c29readelf reads its input from stdin.

12.4.2. Options

--all

Equivalent to specifying all the main display options.

--addrsig

Display the address-significance table.

--arch-specific, -A

Display architecture-specific information.

--color

Use colors in the output for warnings and errors.

--demangle, -C

Display demangled C++ symbol names in the output.

--dyn-relocations

Display the dynamic relocation entries.

--dyn-symbols, --dyn-syms

Display the dynamic symbol table.

--dynamic-table, --dynamic, -d

Display the dynamic table.

--cg-profile

Display the callgraph profile section.

--elf-hash-histogram, --histogram, -I

Display a bucket list histogram for dynamic symbol hash tables.

--elf-linker-options

Display the linker options section.

--elf-section-groups, --section-groups, -g

Display section groups.

--expand-relocs

When used with the --relocations option, the --expand-relocs option causes c29readelf to display each relocation in an expanded multi-line format.

--file-headers, -h

Display file headers.

--hash-symbols

Display the expanded hash table with dynamic symbol data.

--hash-table

Display the hash table for dynamic symbols.

--headers, -e

Equivalent to combining the --file-headers, --program-headers, and --sections options.

--help

Display a summary of command line options.

--help-list

Display an uncategorized summary of command line options.

--hex-dump=<section1>[,<section2>,...], -x

Display the specified <sectionN> as hexadecimal bytes. A given <sectionN> argument may be a section index or section name.

--needed-libs

Display the needed libraries.

--notes, -n

Display all notes.

--program-headers, --segments, -l

Display the program headers.

--raw-relr

Do not decode relocations in RELR relocation sections when displaying them.

--relocations, --relocs, -r

Display the relocation entries in the file.

--sections, --section-headers, -S

Display all sections.

--section-data

When used with the --sections option, this option causes c29readelf to display section data for each section shown.

--section-details, -t

Display all section details. Used as an alternative to the --sections option.

--section-mapping

Display the section to segment mapping.

--section-relocations

When used with the --sections option, this option causes c29readelf to display relocations for each section shown.

--section-symbols

When used with the --sections option, the --section-symbols option causes c29readelf to display symbols for each section shown.

--stackmap

Display contents of the stackmap section.

--string-dump=<section1>[,<section2>,...], -p

Display the specified <sectionN> as a list of strings. <sectionN> may be a section index or section name.

--symbols, --syms, -s

Display the symbol table.

--unwind, -u

Display stack unwinding information.

--version

Display the version of the c29readelf executable.

--version-info, -V

Display version sections.

@<file>

Read command-line options from specified <file>.

12.4.3. Exit Status

The c29readelf utility returns 0 under normal operation. It returns a non-zero exit code if there were any errors.