LLVM-READOBJ(1)
๐ LLVM-READOBJ(1) โ the LLVM Object Reader, explained by your local Unix bestie
okay so first things first: this whole vibe is from the LLVM manual, and the tool is llvm-readobj, and honestly? she's that girl who opens up an object file and reads you its whole diary. let's go ๐ซถ
โจ NAME โจ
llvm-readobj โ the LLVM Object Reader. that's it, that's the name, and yes she ate ๐
๐ธ SYNOPSIS ๐ธ
llvm-readobj [options] [input...]
๐ฆ DESCRIPTION ๐ฆ
so the llvm-readobj tool shows you low-level, format-specific information about one or more object files. like, the deep nerdy details, not the surface-level stuff. it's giving x-ray vision, fr fr.
if input is -, then llvm-readobj reads from standard input. otherwise it reads from the filenames you specified. simple as that ๐
๐ DIFFERENCES TO LLVM-READELF ๐
okay so llvm-readelf is an alias for the llvm-readobj <llvm-readobj.html> tool, but with a slightly different command-line interface and GNU-compatible output. here's the full rundown of how they differ, no cap:
llvm-readelfusesGNUfor the--elf-output-styleoption by default.llvm-readobjusesLLVM.llvm-readelfallows single-letter grouped flags (e.g.llvm-readelf -SWis the same asllvm-readelf -S -W).llvm-readobjdoes not allow grouping. she said one at a time pls ๐llvm-readelfprovides-sas an alias for--symbols, for GNUreadelfcompatibility, whereas inllvm-readobjit's an alias for--section-headers. literally the same letter, different personality ๐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. iconic precaution tbh ๐
โญ GENERAL AND MULTI-FORMAT OPTIONS โญ
these options apply to more than one file format, or honestly aren't related to file formats at all. they're the social butterflies of the option list ๐ฆ
--addrsigโ Display the address-significance table.--allโ Equivalent to specifying all the main display options relevant to the file format. she does the most, on purpose โจ--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. 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.--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.--offloadingโ Display list of HIP offload bundles.--relocations,--relocs,-rโ Display the relocation entries in the file.--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.--sections,--section-headers,-Sโ Display all sections.--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 ๐
these ones are implemented only for the ELF file format. ELF girlies, this is your moment ๐
--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.
--call-graph-infoโ Display the call graph section entries i.e. for each function its identifying information, each of its direct callees' information and for each indirect callee a 64-bit number representing the callee's function signature. This information can be used to reconstruct the program call graph. the whole friend group tree, rendered ๐ฅ--cg-profileโ Display the callgraph profile section.--dependent-librariesโ Display the dependent libraries section.--dynamic-table,--dynamic,-dโ Display the dynamic table.--dyn-relocationsโ Display the dynamic relocation entries.--dyn-symbols,--dyn-syms,--dtโ Display the dynamic symbol table.--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 GNUreadelfoutput.JSONis JSON formatted output intended for machine consumption.--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.--histogram,-Iโ Display a bucket list histogram for dynamic symbol hash tables.--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-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-map to have an effect. like, she literally does nothing without her friend, no cap ๐ซถ
--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-groups,-gโ Display section groups.--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 ๐
these ones 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 ๐ง
these ones are implemented only for the PE/COFF file format. windows besties, this is your era ๐
--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-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.--coff-tls-directoryโ Display the TLS directory.
๐บ XCOFF SPECIFIC OPTIONS ๐บ
these ones are implemented only for the XCOFF file format. rare and mysterious, we stan ๐
--auxiliary-headerโ Display XCOFF Auxiliary header.--exception-sectionโ Display XCOFF exception section entries.--loader-section-headerโ Display XCOFF loader section header.--loader-section-relocationsโ Display relocation entries of loader section.--loader-section-symbolsโ Display symbol table of loader section.
๐ซถ EXIT STATUS ๐ซถ
llvm-readobj returns 0 under normal operation. It returns a non-zero exit code if there were any errors. so if you get a non-zero, something went wrong, and that's your sign to go look ๐ญ
๐ฅ SEE ALSO ๐ฅ
llvm-nm(1) <llvm-nm.html>, llvm-objdump(1) <llvm-objdump.html>, llvm-readelf(1) <llvm-readelf.html> โ go read those too, they're the rest of the friend group, iykyk ๐
๐ Author ๐
Maintained by the LLVM Team (https://llvm.org/).
๐ Copyright ๐
2003-2026, LLVM Project
and that's the whole page, bestie ๐ this was page 23 of the LLVM manual, dated 2026-10-20, and you read it all the way through โ genuinely main character energy, obsessed with you fr fr ๐โจ
๐ฆ where this page comes from
- arch rolling: llvm 23.1.4-1 ยท Apache-2.0 WITH LLVM-exception
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms