LLVM-READELF(1)

πŸ“¦
version 11.1.0 Β· 2 versions
, in fedora 43, fedora 44

✨ 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 are LLVM and GNU. LLVM output is an expanded and structured format, whilst GNU (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 the llvm-readelf executable.
  • --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.


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