LLVM-READELF(1)
πΈ NAME πΈ
Okay so meet llvm-readelf, aka the GNU-style LLVM Object Reader β manual page LLVM-READELF(1), bestie, and yes she is that girl π
β¨
β¨ SYNOPSIS β¨
llvm-readelf [options] [input...]
π DESCRIPTION π
llvm-readelf shows you low-level, format-specific info about one or more object files. It's giving x-ray vision for binaries π₯
If input is -, llvm-readelf reads from standard input. Otherwise, it reads from the specified filenames. No cap, that's the whole entrance situation π«Ά
π OPTIONS π
--all,-aβ equivalent to specifying all the main display options relevant to the file format. The "give me the whole vibe check" option π--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.--decompress,-zβ dump decompressed section content when used with-xor-p. If the section(s) are not compressed, they are displayed as is.--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.--extra-sym-infoβ display extra information (section name) when showing symbols.--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.sectionmay be a section index or section name.--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.--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, JSON output will be formatted in a more readable format.--program-headers,--segments,-lβ display the program headers.--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 for GNU style 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 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.--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.--string-dump=<section[,section,...]>,-pβ display the specified section(s) as a list of strings.sectionmay be a section index or section name.--symbols,--syms,-sβ display the symbol table. Also display the dynamic symbol table when using GNU output 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>.
π¦ 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 outcome, non-zero means something went off π
π SEE ALSO π
Your next little reading list is iconic: llvm-nm(1), llvm-objdump(1), and llvm-readobj(1) π«Άβ¨
π AUTHOR π
Maintained by the LLVM Team β https://llvm.org/ π
π COPYRIGHT π
2003-2025, LLVM Project β periodt π
β¨ Cute sign-off: this is page 19 of LLVM-READELF(1), source/version LLVM, dated 2025-01-17 β bye bestie, ily! π
π
π¦ where this page comes from
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm19 19.1.7-160000.2.2 Β· 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