blob: 0e752f731ffce8c6478c7e85c2cdfbe010db690c [file] [log] [blame]
Nico Rieck51432432013-04-11 00:05:57 +00001llvm-readobj - LLVM Object Reader
2=================================
3
4SYNOPSIS
5--------
6
7:program:`llvm-readobj` [*options*] [*input...*]
8
9DESCRIPTION
10-----------
11
12The :program:`llvm-readobj` tool displays low-level format-specific information
13about one or more object files. The tool and its output is primarily designed
14for use in FileCheck-based tests.
15
16OPTIONS
17-------
18
19If ``input`` is "``-``" or omitted, :program:`llvm-readobj` reads from standard
20input. Otherwise, it will read from the specified ``filenames``.
21
22.. option:: -help
23
24 Print a summary of command line options.
25
26.. option:: -version
27
28 Display the version of this program
29
30.. option:: -file-headers, -h
31
32 Display file headers.
33
34.. option:: -sections, -s
35
36 Display all sections.
37
38.. option:: -section-data, -sd
39
40 When used with ``-sections``, display section data for each section shown.
41
42.. option:: -section-relocations, -sr
43
44 When used with ``-sections``, display relocations for each section shown.
45
46.. option:: -section-symbols, -st
47
48 When used with ``-sections``, display symbols for each section shown.
49
50.. option:: -relocations, -r
51
52 Display the relocation entries in the file.
53
54.. option:: -symbols, -t
55
56 Display the symbol table.
57
58.. option:: -dyn-symbols
59
60 Display the dynamic symbol table (only for ELF object files).
61
62.. option:: -unwind, -u
63
64 Display unwind information.
65
Nico Rieckf3f0b792013-04-12 04:01:52 +000066.. option:: -expand-relocs
67
68 When used with ``-relocations``, display each relocation in an expanded
69 multi-line format.
70
Nico Rieck51432432013-04-11 00:05:57 +000071.. option:: -dynamic-table
72
73 Display the ELF .dynamic section table (only for ELF object files).
74
75.. option:: -needed-libs
76
77 Display the needed libraries (only for ELF object files).
78
Nico Rieckd6df0542013-04-12 04:07:39 +000079.. option:: -program-headers
80
81 Display the ELF program headers (only for ELF object files).
82
Hemant Kulkarniab4a46f2016-01-26 19:46:39 +000083.. option:: -elf-section-groups, -g
84
85 Display section groups (only for ELF object files).
86
James Hendersone50d9cb2019-01-17 15:34:12 +000087.. option:: -demangle, -C
88
89 Print demangled symbol names in the output.
90
James Henderson9485b262019-06-21 11:49:20 +000091.. option:: @<FILE>
92
93 Read command-line options from response file `<FILE>`.
94
Nico Rieck51432432013-04-11 00:05:57 +000095EXIT STATUS
96-----------
97
98:program:`llvm-readobj` returns 0.