---
name: "elfdump"
section: "1"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/elfdump"
---

# elfdump(1)

display information about ELF files

## NAME

**elfdump** – display information about ELF files

## SYNOPSIS

**elfdump** **-a** \| **-E** \| **-cdeGhinprs** \[**-w** *file*\] *file*

## DESCRIPTION

The **elfdump** utility dumps various information about the specified ELF *file*.

The options are as follows:

- **-a**

  Dump all information.

- **-c**

  Dump section headers.

- **-d**

  Dump dynamic symbols.

- **-e**

  Dump ELF header.

- **-E**

  Return success if *file* is an ELF file and failure if it is not. This option is exclusive with other options.

- **-G**

  Dump the GOT.

- **-h**

  Dump the hash values.

- **-i**

  Dump the dynamic interpreter.

- **-n**

  Dump note sections.

- **-p**

  Dump the program header.

- **-r**

  Dump relocations.

- **-s**

  Dump the symbol table.

- **-w** *file*

  Write output to a *file* instead of the standard output.

## EXIT STATUS

The **elfdump** utility exits 0 on success, and \>0 if an error occurs.

## EXAMPLES

The following is an example of a typical usage of the **elfdump** command:

```
elfdump -a -w output /bin/ls
```

## SEE ALSO

[objdump(1)](/objdump/1.md), [readelf(1)](/readelf/1.md) AT&T Unix Systems Labs, *System V Application Binary Interface*, http://www.sco.com/developers/gabi/.

## HISTORY

The **elfdump** utility first appeared in FreeBSD 5.0.

## AUTHORS

The **elfdump** utility was written by Jake Burkholder ⟨*jake@FreeBSD.org*⟩. This manual page was written by David O'Brien ⟨*obrien@FreeBSD.org*⟩.

## BUGS

Does not fully implement the ELF gABI.
