LLVM-READELF(1)
π LLVM-READELF(1) π
okay bestie, welcome to the llvm-readelf page β she lives in the LLVM manual set and she's literally the GNU-style LLVM Object Reader β¨
β¨ SYNOPSIS β¨
llvm-readelf [options] [input...]
π¦ DESCRIPTION π¦
so basically, llvm-readelf spills all the low-level, format-specific tea about one or more object files. like, the actual guts. the lore. π
if input is -, then llvm-readelf reads from standard input. otherwise? she reads from the filenames you gave her, one by one, no cap. π«Ά
π OPTIONS π
--all,-aβ the "give me everything" button π equivalent to specifying all the main display options relevant to the file format.--addrsigβ shows the address-significance table. β¨--arch-specific,-Aβ shows architecture-specific info, e.g. the ARM attributes section on ARM. iykyk π§--bb-addr-mapβ dumps the contents of the basic block address map section(s), which hold the address of each function plus the relative offset of each basic block. iconic π₯--decompress,-zβ dumps decompressed section content when used with-xor-p. if the section(s) aren't compressed, they're just displayed as-is. no drama π--demangle,-Cβ displays demangled symbol names in the output. so your eyes don't have to suffer π--dependent-librariesβ displays the dependent libraries section. π--dyn-relocationsβ displays the dynamic relocation entries. β¨--dyn-symbols,--dyn-symsβ displays the dynamic symbol table. π¦--dynamic-table,--dynamic,-dβ displays the dynamic table. π--cg-profileβ displays the callgraph profile section. π--histogram,-Iβ displays a bucket list histogram for dynamic symbol hash tables. stats queen π--elf-linker-optionsβ displays the linker options section. πΈ--elf-output-style=<value>β formats ELF info in the style you picked. valid options areLLVM,GNU, andJSON.LLVMoutput is an expanded and structured format.GNU(the default) mimics the equivalent GNUreadelfoutput.JSONis JSON-formatted output intended for machine consumption. pick your fighter β¨--extra-sym-infoβ displays extra info (the section name) when showing symbols. the more you know π--section-groups,-gβ displays section groups. π--expand-relocsβ when used with--relocations, displays each relocation in an expanded multi-line format. give her room to breathe π¬οΈ--file-header,-hβ displays file headers. π--gnu-hash-tableβ displays the GNU hash table for dynamic symbols. π§--hash-symbolsβ displays the expanded hash table with dynamic symbol data. π--hash-tableβ displays the hash table for dynamic symbols. π--headers,-eβ equivalent to setting:--file-header,--program-headers, and--sections. the trio, periodt π--helpβ displays a summary of command line options. when you're lost, she's there π«Ά--hex-dump=<section[,section,...]>,-xβ displays the specified section(s) as hexadecimal bytes. section may be a section index</u> or a section name. π’--memtagβ displays info about memory tagging present in the binary. this includes various memtag-specific dynamic entries, decoded global descriptor sections, and decoded Android-specific ELF notes. very specific, very slay β¨--needed-libsβ displays the needed libraries. π--no-demangleβ do not display demangled symbol names in the output. on by default. so mangled it stays, bestie π--notes,-nβ displays all notes. π--offloadingβ displays the list of HIP offload bundles. π--pretty-printβ when used with--elf-output-style, theJSONoutput gets formatted in a more readable format. glow-up for your JSON π--program-headers,--segments,-lβ displays the program headers. π--relocations,--relocs,-rβ displays the relocation entries in the file. π₯--sections,--section-headers,-Sβ displays all sections. π--section-dataβ when used with--sections, displays section data for each section shown. this option has no effect for GNU style output. π«--section-details,-tβ displays all section details. used as an alternative to--sections. π--section-mappingβ displays the section to segment mapping. πΊοΈ--section-relocationsβ when used with--sections, displays relocations for each section shown. this option has no effect for GNU style output. π«--section-symbolsβ when used with--sections, displays symbols for each section shown. this option has no effect for GNU style output. π«--stackmapβ displays the contents of the stackmap section. π--stack-sizesβ displays 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. β οΈ--string-dump=<section[,section,...]>,-pβ displays the specified section(s) as a list of strings. section may be a section index or a section name. π§΅--symbols,--syms,-sβ displays the symbol table. also displays the dynamic symbol table when using GNU output style for ELF. two for one, we love to see it π--unwind,-uβ displays unwind information. π--versionβ displays the version of thellvm-readelfexecutable. π·οΈ--version-info,-Vβ displays version sections. πΈ--wide,-Wβ ignored for GNUreadelfcompatibility. the output is already similar to when using-Wwith GNUreadelf. nothing to do here, she's already that girl π@<FILE>β reads command-line options from the response file<FILE>. π
π EXIT STATUS π
llvm-readelf returns 0 under normal operation. she returns a non-zero exit code if there were any errors. π
π SEE ALSO π
llvm-nm(1)<llvm-nm.html>llvm-objdump(1)<llvm-objdump.html>llvm-readobj(1)<llvm-readobj.html>
π Author π
maintained by the LLVM Team (https://llvm.org/). π«Ά
π Copyright π
2003-2026, LLVM Project
and that's the whole page, bestie β¨ this one's from the LLVM manual set, version 22, dated 2026-07-16 β go read some object files, you absolute icon π
π
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms