summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/llvm-readelf.md
blob: a03844da1a2c589a5cb13c532d906e2741577730 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# llvm-readelf - a drop-in replacement for readelf

## SYNOPSIS

**llvm-readelf** [*options*]

## DESCRIPTION

**llvm-readelf** is an alias for the [llvm-readobj](llvm-readobj.html) tool with
a command-line interface and output style more closely resembling GNU
**readelf**.

Here are some of those differences:

* Uses `--elf-output-style=GNU` by default.

* Allows single-letter grouped flags (e.g. `llvm-readelf -SW` is the same as
  `llvm-readelf -S -W`).

* Allows use of `-s` as an alias for `--symbols` (versus `--section-headers` in
  **llvm-readobj**) for GNU **readelf** compatibility.

* Prevents use of `-sr`, `-sd`, `-st` and `-dt` **llvm-readobj** aliases, to
  avoid conflicting with standard GNU **readelf** grouped flags.

## SEE ALSO

Refer to [llvm-readobj](llvm-readobj.html) for additional information.
OpenPOWER on IntegriCloud