LLVM-READELF(1)
π LLVM-READELF(1) β GNU-style LLVM Object Reader (LLVM manual, bestie edition) π
πΈ NAME
llvm-readelf β GNU-style LLVM Object Reader π
β¨ SYNOPSIS
llvm-readelf [options] [input...]
π DESCRIPTION
Okay so llvm-readelf is the tool that displays low-level format-specific information about one or more object files. It's giving x-ray vision for binaries, no cap. π¦
If input is -, llvm-readelf reads from standard input. Otherwise, it will read from the specified filenames. Literally that simple, bestie. π
π OPTIONS
--all,-aβ Equivalent to specifying all the main display options relevant to the file format. It's the "give me the whole main-character tour" button. π--addrsigβ Display the address-significance table. π--arch-specific,-Aβ Display architecture-specific information, e.g. the ARM attributes section on ARM. Vibe check for the architecture, iykyk. π--bb-addr-mapβ Display the contents of the basic block address map section(s), which contain the address of each function, along with the relative offset of each basic block. π§--demangle,-Cβ Display demangled symbol names in the output. Because readable names slay. β¨--dependent-librariesβ Display the dependent libraries section. π--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. Main character energy for your callgraph. π--histogram,-Iβ Display a bucket list histogram for dynamic symbol hash tables. Not me being obsessed with buckets. πͺ£--elf-linker-optionsβ Display the linker options section. Linker bestie representation. π«Ά--elf-output-style=<value>β Format ELF information in the specified style. Valid options areLLVM,GNU, andJSON.LLVMoutput is an expanded and structured format.GNU(the default) output mimics the equivalent GNU readelf output.JSONis JSON formatted output intended for machine consumption. Pick your aesthetic, bestie. π--section-groups,-gβ Display section groups. πΈ--expand-relocsβ When used with--relocations, display each relocation in an expanded multi-line format. It's giving spacious. β¨--file-header,-hβ Display file headers. π--gnu-hash-tableβ Display the GNU hash table for dynamic symbols. π--hash-symbolsβ Display the expanded hash table with dynamic symbol data. π--hash-tableβ Display the hash table for dynamic symbols. π§--headers,-eβ Equivalent to setting:--file-header,--program-headers, and--sections. A little bundle of header joy. π--helpβ Display a summary of command line options. When you need the manual for the manual, lowkey iconic. π--hex-dump=<section[,section,...]>,-xβ Display the specified section(s) as hexadecimal bytes. section may be a section index or section name. Hex girl summer. π₯--memtagβ Display information about memory tagging present in the binary. This includes various memtag-specific dynamic entries, decoded global descriptor sections, and decoded Android-specific ELF notes. Memtag lore, unlocked. π§--needed-libsβ Display the needed libraries. The friend group your binary needs, fr fr. π«Ά--no-demangleβ Do not display demangled symbol names in the output. On by default. So yes, the default vibe is no-demangle. π--notes,-nβ Display all notes. π--pretty-printβ When used with--elf-output-style, JSON output will be formatted in a more readable format. Pretty JSON, pretty vibes. β¨--program-headers,--segments,-lβ Display the program headers. π--raw-relrβ Do not decode relocations in RELR relocation sections when displaying them. Raw and unfiltered, periodt. π--relocations,--relocs,-rβ Display the relocation entries in the file. Moving things around, literally. π--sections,--section-headers,-Sβ Display all sections. Section slay. π--section-dataβ When used with--sections, display section data for each section shown. This option has no effect for GNU style output. Important caveat, bestie. π«Ά--section-details,-tβ Display all section details. Used as an alternative to--sections. Detail-oriented queen. π--section-mappingβ Display the section to segment mapping. Mapping the lore. πΊοΈ--section-relocationsβ When used with--sections, display relocations for each section shown. This option has no effect for GNU style output. π--section-symbolsβ When used with--sections, display symbols for each section shown. This option has no effect for GNU style output. β¨--stackmapβ Display contents of the stackmap section. Stackmap section, you're on. πΊοΈ--stack-sizesβ Display the contents of the stack sizes section(s), i.e. pairs of function names and the size of their stack frames. Currently only implemented for GNU style output. Stack frame measurements, ate. π--string-dump=<section[,section,...]>,-pβ Display the specified section(s) as a list of strings. section may be a section index or section name. String section bestie. π§΅--symbols,--syms,-sβ Display the symbol table. Also display the dynamic symbol table when using GNU output style for ELF. Symbols on symbols. π«--unwind,-uβ Display unwind information. Unwind the vibes. πͺοΈ--versionβ Display the version of thellvm-readelfexecutable. Version check, periodt. π·οΈ--version-info,-Vβ Display version sections. π--wide,-Wβ Ignored for GNU readelf compatibility. The output is already similar to when using-Wwith GNU readelf. So don't stress, bestie. π@<FILE>β Read command-line options from response file<FILE>. Response file magic. πͺ
π EXIT STATUS
llvm-readelf returns 0 under normal operation. It returns a non-zero exit code if there were any errors. So 0 is the slay, non-zero is the "oop, something happened" π.
π SEE ALSO
llvm-nm(1), llvm-objdump(1), llvm-readobj(1) β the rest of the tool besties. π«Ά
π AUTHOR
Maintained by the LLVM Team (https://llvm.org/). Shoutout to the maintainers, iconic behavior. π
π COPYRIGHT
2003-2023, LLVM Project. Respect the copyright, bestie. πΈ
okay that's the whole page, bestie π β page 17, dated 2023-12-01, and it's LLVM-READELF(1), periodt. go read some ELF files and stay iconic π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm17 17.0.6-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms