LLVM-READELF(1)
π llvm-readelf β the GNU-style LLVM Object Reader, bestie edition
okay so welcome to the llvm-readelf page from the LLVM manual set (yes that LLVM, the compiler queen π). She's here to spill the tea on what's actually inside your object files. lowkey iconic.
β¨ NAME β¨
llvm-readelf β the GNU-style LLVM Object Reader π¦
πΈ SYNOPSIS πΈ
llvm-readelf [options] [inputβ¦]
π DESCRIPTION π
The llvm-readelf tool displays low-level, format-specific information about one or more object files. like, it's giving x-ray vision for binaries fr fr π₯
If input is -, llvm-readelf reads from standard input. Otherwise, it will read from the specified filenames.
π OPTIONS π
--all,-aβ same energy as specifying all the main display options relevant to the file format. it's the "give me everything" button π--addrsigβ Display the address-significance table.--arch-specific,-Aβ Display architecture-specific information, e.g. the ARM attributes section on ARM.--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.--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.--histogram,-Iβ Display a bucket list histogram for dynamic symbol hash tables.--elf-linker-optionsβ Display the linker options section.--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.--section-groups,-gβ Display section groups.--expand-relocsβ When used with--relocations, display each relocation in an expanded multi-line format.--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.--helpβ Display a summary of command line options.--hex-dump=<section[,section,...]>,-xβ Display the specified section(s) as hexadecimal bytes. section may be a section index or section name.--needed-libsβ Display the needed libraries.--no-demangleβ Do not display demangled symbol names in the output. On by default.--notes,-nβ Display all notes.--pretty-printβ When used with--elf-output-style,JSONoutput will be formatted in a more readable format.--program-headers,--segments,-lβ Display the program headers.--raw-relrβ Do not decode relocations in RELR relocation sections when displaying them.--relocations,--relocs,-rβ Display the relocation entries in the file.--sections,--section-headers,-Sβ Display all sections.--section-dataβ When used with--sections, display section data for each section shown. This option has no effect forGNUstyle output.--section-details,-tβ Display all section details. Used as an alternative to--sections.--section-mappingβ Display the section to segment mapping.--section-relocationsβ When used with--sections, display relocations for each section shown. This option has no effect forGNUstyle output.--section-symbolsβ When used with--sections, display symbols for each section shown. This option has no effect forGNUstyle output.--stackmapβ Display contents of the stackmap section.--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 forGNUstyle output.--string-dump=<section[,section,...]>,-pβ Display the specified section(s) as a list of strings. section may be a section index or section name.--symbols,--syms,-sβ Display the symbol table. Also display the dynamic symbol table when usingGNUoutput style for ELF.--unwind,-uβ Display unwind information.--versionβ Display the version of thellvm-readelfexecutable.--version-info,-Vβ Display version sections.--wide,-Wβ Ignored for GNU readelf compatibility. The output is already similar to when using-Wwith GNU readelf.@<FILE>β Read command-line options from response file<FILE>.
bestie there are literally so many options here, and you gotta keep them all in mind β none of them are skippable π
π«Ά EXIT STATUS π«Ά
llvm-readelf returns 0 under normal operation. It returns a non-zero exit code if there were any errors. so if it's mad at you, you'll know π
π SEE ALSO π
llvm-nm(1), llvm-objdump(1), llvm-readobj(1)
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/).
π COPYRIGHT π
2003-2025, LLVM Project
and that's a wrap bestie β¨ this was LLVM version 14, dated 2025-05-22, LLVM-READELF(1) β go read some object files, you ate ππ
π¦ where this page comes from
- ubuntu questing: llvm-14 1:14.0.6-20ubuntu3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms