LLVM-READELF(1)
π llvm-readelf β LLVM-READELF(1) π
Okay so bestie, this is the manual page for llvm-readelf, and itβs literally the GNU-style LLVM object reader. Get comfy, weβre reading object files together π
β¨
π NAME π
llvm-readelf β GNU-style LLVM Object Reader. Periodt.
π¦ SYNOPSIS π¦
llvm-readelf [options] [input...]
πΈ DESCRIPTION πΈ
The llvm-readelf tool displays low-level format-specific information about one or more object files. No cap, thatβs the whole vibe.
If input is -, llvm-readelf reads from standard input. Otherwise, it will read from the specified filenames. Literally that simple, bestie π«Ά
β¨ OPTIONS β¨
--addrsigβ Display the address-significance table. Vibe check: address significance, secured π--all,-aβ Equivalent to specifying all the main display options relevant to the file format. Itβs giving βgive me everythingβ energy π--arch-specific,-Aβ Display architecture-specific information, e.g. the ARM attributes section on ARM. Architecture lore, unlocked π¦--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. Basic block map, but make it iconic π--call-graph-infoβ Display the call graph section entries i.e. for each function its identifying information, each of its direct callees' information and for each indirect callee a 64-bit number representing the callee's function signature. This information can be used to reconstruct the program call graph. Call graph reconstruction? Obsessed ππ₯--cg-profileβ Display the callgraph profile section. Callgraph profile says hi π--decompress,-zβ Dump decompressed section content when used with-xor-p. If the section(s) are not compressed, they are displayed as is. Unzip the vibe, respectfully π§--demangle,-Cβ Display demangled symbol names in the output. Demangled names are highkey a gift π--dependent-librariesβ Display the dependent libraries section. Dependencies, but make it visible πΈ--dynamic-table,--dynamic,-dβ Display the dynamic table. Dynamic table main character energy π--dyn-relocationsβ Display the dynamic relocation entries. Dynamic relocations, slay π--dyn-symbols,--dyn-symsβ Display the dynamic symbol table. Dynamic symbols, no cap β¨--elf-linker-optionsβ Display the linker options section. Linker options section, noted π«Ά--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 π--extra-sym-infoβ Display extra information (section name) when showing symbols. Extra sym info, because context ate π--expand-relocsβ When used with--relocations, display each relocation in an expanded multi-line format. Relocations but spread out and dramatic π--file-header,-hβ Display file headers. File headers, hello gorgeous π--gnu-hash-tableβ Display the GNU hash table for dynamic symbols. GNU hash table is lowkey iconic π--hash-symbolsβ Display the expanded hash table with dynamic symbol data. Expanded hash table with dynamic symbol data, periodt β¨--hash-tableβ Display the hash table for dynamic symbols. Hash table for dynamic symbols, yes maβam π--headers,-eβ Equivalent to setting:--file-header,--program-headers, and--sections. Itβs giving bundled headers moment π--helpβ Display a summary of command line options. Help section, always there for you π«Ά--hex-dump=<section[,section,...]>,-xβ Display the specified section(s) as hexadecimal bytes. Where section may be a section index or section name. Hex dump, but cute πΈ--histogram,-Iβ Display a bucket list histogram for dynamic symbol hash tables. Bucket list histogram for dynamic symbol hash tables, iykyk π--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 info is highkey iconic π--needed-libsβ Display the needed libraries. Needed libraries, showing up as needed π¦--no-demangleβ Do not display demangled symbol names in the output. On by default. Not me keeping it raw and mangled π--notes,-nβ Display all notes. Notes, all of them, no notes missed π--offloadingβ Display list of HIP offload bundles. HIP offload bundles, slay π--pretty-printβ When used with--elf-output-style, JSON output will be formatted in a more readable format. Pretty-print is literally the glow-up β¨--program-headers,--segments,-lβ Display the program headers. Program headers, main character energy π--relocations,--relocs,-rβ Display the relocation entries in the file. Relocations in the file, we love to see it π--section-dataβ When used with--sections, display section data for each section shown. This option has no effect for GNU style output. Section data, but GNU style output said βnot todayβ π--section-details,-tβ Display all section details. Used as an alternative to--sections. All section details, because weβre thorough bestie π--section-groups,-gβ Display section groups. Section groups, periodt πΈ--section-mappingβ Display the section to segment mapping. Section to segment mapping is iconic, fr fr π¦--section-relocationsβ When used with--sections, display relocations for each section shown. This option has no effect for GNU style output. Section relocations, but GNU style output is unbothered π--sections,--section-headers,-Sβ Display all sections. All sections, all the time π--section-symbolsβ When used with--sections, display symbols for each section shown. This option has no effect for GNU style output. Section symbols, and again GNU style output said nope π--stackmapβ Display contents of the stackmap section. Stackmap contents, unlocked π§--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 sizes, currently only implemented for GNU style output, no cap π--string-dump=<section[,section,...]>,-pβ Display the specified section(s) as a list of strings. Where section may be a section index or section name. Strings section, serving string energy β¨--symbols,--syms,-sβ Display the symbol table. Also display the dynamic symbol table when using GNU output style for ELF. Symbols and GNU-style dynamic symbols, slay π--unwind,-uβ Display unwind information. Unwind information, iconic as always π--versionβ Display the version of thellvm-readelfexecutable. Version check, no cap π--version-info,-Vβ Display version sections. Version sections, yes bestie π--wide,-Wβ Ignored for GNU readelf compatibility. The output is already similar to when using-Wwith GNU readelf. Itβs ignored, but make it fashion π@<FILE>β Read command-line options from response file<FILE>. Response file<FILE>says βread meβ π«Ά
π EXIT STATUS π
llvm-readelf returns 0 under normal operation. It returns a non-zero exit code if there were any errors. Fr fr, 0 means weβre chilling, non-zero means something went off π
π¦ SEE ALSO π¦
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/).
π COPYRIGHT π
2003-2026, LLVM Project
This page is from the LLVM Project, dated 2026-10-06, and itβs page 23 of the LLVM-READELF(1) manual. Bye bestie, go make those object files make sense πβ¨
π¦ where this page comes from
- centos-stream 9: llvm 23.1.3-1.el9 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- centos-stream 9: llvm 23.1.3-1.el9 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms