LLVM-READOBJ(1)
π LLVM-READOBJ π
okay so bestie, welcome to the LLVM manual page for llvm-readobj, the little icon that reads your object files and spills all the tea π«β¨
β¨ NAME β¨
llvm-readobj β LLVM Object Reader. that's it, that's the name, she reads objects. iconic behavior honestly.
πΈ SYNOPSIS πΈ
llvm-readobj [options] [input...]
π¦ DESCRIPTION π¦
so the llvm-readobj tool? she displays low-level format-specific information about one or more object files. like, the actual structural deets, not vibes. π
and if input is "-", llvm-readobj reads from standard input. otherwise she reads from the specified filenames. simple as that, no cap. β¨
π DIFFERENCES TO LLVM-READELF π
llvm-readelf is an alias for the llvm-readobj <llvm-readobj.html> tool, except with a slightly different command-line interface and output that's GNU compatible. not me having two whole personalities π
here's the full list of differences between llvm-readelf and llvm-readobj:
llvm-readelfuses GNU for the--elf-output-styleoption by default.llvm-readobjuses LLVM.llvm-readelfallows single-letter grouped flags (e.g.llvm-readelf -SWis the same asllvm-readelf -S -W).llvm-readobjdoes not allow grouping.llvm-readelfprovides-sas an alias for--symbols, for GNU readelf compatibility, whereas inllvm-readobjit's an alias for--section-headers.llvm-readobjprovides-tas an alias for--symbols.llvm-readelfdoes not.llvm-readobjprovides--sr,--sd,--stand--dtas aliases for--section-relocations,--section-data,--section-symbolsand--dyn-symbolsrespectively.llvm-readelfdoes not provide these aliases, to avoid conflicting with grouped flags.
periodt. π
π GENERAL AND MULTI-FORMAT OPTIONS π
these options are applicable to more than one file format, or are unrelated to file formats. flexible queens only π
--allβ equivalent to specifying all the main display options relevant to the file format. she does it all, main character energy fr.--addrsigβ display the address-significance table.--decompress,-zβ dump decompressed section content when used with-xor-p. if the section(s) are not compressed, they're displayed as is. no glow-up needed π--demangle,-Cβ display demangled symbol names in the output. this option is only for ELF and XCOFF file formats.--expand-relocsβ when used with--relocs, display each relocation in an expanded multi-line format. roomy β¨--file-header,-hβ display file headers.--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.--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 demangle symbol names in the output. this option is only for ELF and XCOFF file formats. the option is enabled by default. she's already unbothered π--offloadingβ display list of HIP offload bundles.--relocations,--relocs,-rβ display the relocation entries in the file.--sections,--section-headers,-Sβ display all sections.--section-data,--sdβ when used with--sections, display section data for each section shown. this option has no effect for GNU style output.--section-relocations,--srβ when used with--sections, display relocations for each section shown. this option has no effect for GNU style output.--section-symbols,--stβ when used with--sections, display symbols for each section shown. this option has no effect for GNU style output.--sort-symbols=<sort_key[,sort_key]>β specify the keys to sort symbols before displaying symtab. valid values for sort_key arenameandtype.--stackmapβ display contents of the stackmap section.--string-dump=<section[,section,...]>,-pβ display the specified section(s) as a list of strings. section may be a section index or section name.--string-tableβ display contents of the string table.--symbols,--syms,-sβ display the symbol table.--unwind,-uβ display unwind information.--versionβ display the version of thellvm-readobjexecutable.@<FILE>β read command-line options from response file <FILE>.
π§ ELF SPECIFIC OPTIONS π§
the following options are implemented only for the ELF file format. exclusive club, iykyk π
--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. when pgo analysis maps are present, all analyses are printed as their raw value.--pretty-pgo-analysis-mapβ when pgo analysis maps are present in the basic block address map section(s), analyses with special formats (i.e.BlockFrequency,BranchProbability, etc) are printed using the same format as their respective analysis pass. requires--bb-addr-mapto have an effect. no solo runs babes, she needs her dupe π«Ά--dependent-librariesβ display the dependent libraries section.--dyn-relocationsβ display the dynamic relocation entries.--dyn-symbols,--dyn-syms,--dtβ 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 (the default) is an expanded and structured format.GNUoutput mimics the equivalent GNU readelf output.JSONis JSON formatted output intended for machine consumption. three aesthetics, all valid π--section-groups,-gβ display section groups.--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.--memtagβ display information about memory tagging present in the binary. this includes various dynamic entries, decoded global descriptor sections, and decoded Android-specific ELF notes.--notes,-nβ display all notes.--pretty-printβ when used with--elf-output-style, JSON output will be formatted in a more readable format. glow-up for your eyeballs β¨--program-headers,--segments,-lβ display the program headers.--section-mappingβ display the section to segment mapping.--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.--version-info,-Vβ display version sections.
π MACH-O SPECIFIC OPTIONS π
the following options are implemented only for the Mach-O file format. apple girlies rise π
--macho-data-in-codeβ display the Data in Code command.--macho-dsymtabβ display the Dsymtab command.--macho-indirect-symbolsβ display indirect symbols.--macho-linker-optionsβ display the Mach-O-specific linker options.--macho-segmentβ display the Segment command.--macho-version-minβ display the version min command.
π₯ PE/COFF SPECIFIC OPTIONS π₯
the following options are implemented only for the PE/COFF file format. windows besties we see you π
--codeviewβ display CodeView debug information.--codeview-ghashβ enable global hashing for CodeView type stream de-duplication.--codeview-merged-typesβ display the merged CodeView type stream.--codeview-subsection-bytesβ dump raw contents of CodeView debug sections and records.--coff-baserelocβ display the.relocsection.--coff-debug-directoryβ display the debug directory.--coff-tls-directoryβ display the TLS directory.--coff-directivesβ display the.drectvesection.--coff-exportsβ display the export table.--coff-importsβ display the import table.--coff-load-configβ display the load config.--coff-resourcesβ display the.rsrcsection.
β XCOFF SPECIFIC OPTIONS β
the following options are implemented only for the XCOFF file format. niche and unbothered π§
--auxiliary-headerβ display XCOFF Auxiliary header.--exception-sectionβ display XCOFF exception section entries.--loader-section-headerβ display XCOFF loader section header.--loader-section-symbolsβ display symbol table of loader section.--loader-section-relocationsβ display relocation entries of loader section.
π EXIT STATUS π
llvm-readobj returns 0 under normal operation. she returns a non-zero exit code if there were any errors. slay when it works, dramatic sigh when it doesn't π
π SEE ALSO π
llvm-nm(1)<llvm-nm.html>llvm-objdump(1)<llvm-objdump.html>llvm-readelf(1)<llvm-readelf.html>
π Author π
Maintained by the LLVM Team (https://llvm.org/).
π Copyright π
2003-2026, LLVM Project
and that's the whole page bestie, no crumbs left π«Ά this was page 22, dated 2026-07-16, straight from LLVM β LLVM-READOBJ(1), and yes she ate π
β¨
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms