LLVM-READELF(1)
β¨ LLVM-READELF(1) β¨
okay bestie, so this is llvm-readelf β it lives in the LLVM manual, section 1, and it's the GNU-style LLVM Object Reader. yes that's a whole mouthful but stay with me π
π SYNOPSIS π
llvm-readelf [options] [input...]
π¦ DESCRIPTION π¦
so like. the llvm-readelf tool spills all the low-level, format-specific tea about one or more object files. it literally just shows you what's inside them, no filter, no cap π
if input is - or you justβ¦ don't give it anything? it reads from standard input. otherwise it reads from the filenames you handed it. simple as that, fr fr β¨
π OPTIONS π
--allβ the "give me everything" button. equivalent to specifying all the main display options at once. iconic behaviour honestly.--addrsigβ displays the address-significance table.--arch-specific,-Aβ displays architecture-specific info, like the ARM attributes section on ARM. lowkey niche but slay.--colorβ uses colors in the output for warnings and errors. pretty AND functional π--demangle,-Cβ displays demangled symbol names in the output. so you can actually read them bestie.--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.--elf-hash-histogram,--histogram,-Iβ displays a bucket list histogram for dynamic symbol hash tables.--elf-linker-optionsβ displays 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, remember that) mimics the equivalent GNU readelf output.--elf-section-groups,--section-groups,-gβ displays section groups.--expand-relocsβ when you use it with--relocations, it displays each relocation in an expanded multi-line format. roomy β¨--file-headers,-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-headers,--program-headers, and--sections. a lil combo meal π--helpβ displays a summary of command line options.--help-listβ displays an uncategorized summary of command line options. chaotic but valid.--hex-dump=<section[,section,...]>,-xβ displays the specified section(s) as hexadecimal bytes. section may be a section index or section name.--needed-libsβ displays the needed libraries.--notes,-nβ displays all notes.--program-headers,--segments,-lβ displays the program headers.--raw-relrβ do not decode relocations in RELR relocation sections when displaying them. raw. unfiltered. π--relocations,--relocs,-rβ displays the relocation entries in the file.--sections,--section-headers,-Sβ displays all sections.--section-dataβ when you use it with--sections, it displays section data for each section shown. heads up: this option has no effect for GNU style output π--section-mappingβ displays the section to segment mapping.--section-relocationsβ when used with--sections, it displays relocations for each section shown. again, no effect for GNU style output.--section-symbolsβ when used with--sections, it displays symbols for each section shown. and yes, no effect for GNU style output either.--stackmapβ displays 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. we love a limited release π--string-dump=<section[,section,...]>,-pβ displays the specified section(s) as a list of strings. section may be a section index or section name.--symbols,--syms,-sβ displays the symbol table.--unwind,-uβ displays unwind information.--versionβ displays the version of thellvm-readelfexecutable.--version-info,-Vβ displays version sections.@<FILE>β reads 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 like, if the number isn't zero, something went wrong bestie, pay attention π
πΈ SEE ALSO πΈ
llvm-nm(1), llvm-objdump(1), llvm-readobj(1)
π«Ά AUTHOR π«Ά
maintained by the LLVM Team (https://llvm.org/). they're the main characters, honestly.
π COPYRIGHT π
2003-2024, LLVM Project
okay that's the whole page, you ate it up π this was the LLVM manual, version 11, dated 2024-07-18, and it's giving iconic reference material. go read some object files, bestie β periodt β¨π¦π
π¦ where this page comes from
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms