LLVM-READELF(1)
π NAME π
llvm-readelf β bestie, it's the GNU-style LLVM Object Reader π
Like, it reads object files and tells you everything about them. Obsessed.
β¨ SYNOPSIS β¨
llvm-readelf [options] [input...]
π¦ DESCRIPTION π¦
okay so. llvm-readelf is the tool that spills ALL the tea about one or more object files β it shows you low-level, format-specific info. low-level as in deep in the bytes, bestie, not "kinda basic" π
And if input is -, it just reads straight from standard input like a little icon. Otherwise? It reads from the filenames you gave it. Simple as that. β¨
πΈ OPTIONS πΈ
--allβ literally the "give me everything" button. Equivalent to specifying all the main display options. ate. π--addrsigβ shows the address-significance table.--arch-specific,-Aβ shows architecture-specific info, like the ARM attributes section on ARM. iykyk π§--colorβ colors in the output for warnings and errors. pretty and useful, no cap.--demangle,-Cβ shows demangled symbol names in the output, so your eyes don't suffer π--dyn-relocationsβ shows the dynamic relocation entries.--dyn-symbols,--dyn-symsβ shows the dynamic symbol table.--dynamic-table,--dynamic,-dβ shows the dynamic table.--cg-profileβ shows the callgraph profile section.--elf-hash-histogram,--histogram,-Iβ shows a bucket list histogram for dynamic symbol hash tables.--elf-linker-optionsβ shows the linker options section.--elf-output-style=<value>β formats ELF info in the style you pick. Valid options areLLVMandGNU.LLVMoutput is an expanded and structured format, whilstGNU(the default, bestie β that's the one you get if you say nothing) mimics the equivalent GNU readelf output.--elf-section-groups,--section-groups,-gβ shows section groups.--expand-relocsβ when you use it with--relocations, it shows each relocation in an expanded multi-line format. roomy. π--file-headers,-hβ shows file headers.--gnu-hash-tableβ shows the GNU hash table for dynamic symbols.--hash-symbolsβ shows the expanded hash table with dynamic symbol data.--hash-tableβ shows the hash table for dynamic symbols.--headers,-eβ Equivalent to setting:--file-headers,--program-headers, and--sections. three-for-one deal, slay π--helpβ shows a summary of command line options.--help-listβ shows an uncategorized summary of command line options.--hex-dump=<section[,section,...]>,-xβ shows the specified section(s) as hexadecimal bytes. section may be a section index or section name. yes you can comma-separate them, go off π--needed-libsβ shows the needed libraries.--notes,-nβ shows all notes.--program-headers,--segments,-lβ shows the program headers.--raw-relrβ do NOT decode relocations in RELR relocation sections when displaying them. it's giving raw, unprocessed, feral π--relocations,--relocs,-rβ shows the relocation entries in the file.--sections,--section-headers,-Sβ shows all sections.--section-dataβ when you use it with--sections, it shows section data for each section shown. β οΈ heads up bestie: this option has no effect for GNU style output.--section-details,-tβ shows all section details. used as an alternative to--sections.--section-mappingβ shows the section to segment mapping.--section-relocationsβ when you use it with--sections, it shows relocations for each section shown. β οΈ again: this option has no effect for GNU style output.--section-symbolsβ when you use it with--sections, it shows symbols for each section shown. β οΈ and once more: this option has no effect for GNU style output.--stackmapβ shows contents of the stackmap section.--stack-sizesβ shows 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β shows the specified section(s) as a list of strings. section may be a section index or section name.--symbols,--syms,-sβ shows the symbol table.--unwind,-uβ shows unwind information.--versionβ shows the version of thellvm-readelfexecutable.--version-info,-Vβ shows version sections.@<FILE>β reads command-line options from response file <FILE>. cute little shortcut, we love her π«Ά
π₯ 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 not 0, something went sideways, bestie π
π SEE ALSO π
llvm-nm(1), llvm-objdump(1), llvm-readobj(1)
the whole friend group fr fr π
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). iconic behavior, no notes.
π COPYRIGHT π
2003-2024, LLVM Project
okay that's the whole page, bestie!! this was LLVM, dated 2024-07-18, page 12 energy only π mwah, go read some object files β¨π¦πΈ
π¦ where this page comes from
- fedora 43: llvm12 12.0.1-12.fc41 Β· NCSA
- fedora 43: llvm12 12.0.1-12.fc41 Β· NCSA
- fedora 44: llvm12 12.0.1-12.fc41 Β· NCSA
- fedora 44: llvm12 12.0.1-12.fc41 Β· NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms