LLVM-READOBJ(1)
π LLVM-READOBJ(1) β llvm-readobj π
Hiii bestie, welcome to the llvm-readobj page from LLVM β aka the LLVM Object Reader, aka the little tool that spills the low-level format tea about your object files β¨
π NAME π
llvm-readobj β LLVM Object Reader. Iconic. Obsessed. π
π¦ SYNOPSIS π¦
llvm-readobj [options] [input...]
πΈ DESCRIPTION πΈ
The llvm-readobj tool displays low-level format-specific information about one or more object files. Itβs giving detective energy for binaries, fr fr π
If input is -, llvm-readobj reads from standard input. Otherwise, it will read from the specified filenames.
π DIFFERENCES TO LLVM-READELF π
llvm-readelf is an alias for the llvm-readobj tool with a slightly different command-line interface and output that is GNU compatible. Hereβs the differences list, bestie:
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. No grouping, no cap.llvm-readelfprovides-sas an alias for--symbols, for GNU readelf compatibility, whereas it is an alias for--section-headersinllvm-readobj.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.
β¨ GENERAL AND MULTI-FORMAT OPTIONS β¨
These options are applicable to more than one file format, or are unrelated to file formats. Multi-format main-character energy π
--allβ Equivalent to specifying all the main display options relevant to the file format.--addrsigβ Display the address-significance table.--expand-relocsβ When used with--relocs, display each relocation in an expanded multi-line format.--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.sectionmay be a section index or section name.--needed-libsβ Display the needed libraries.--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 forsort_keyarenameandtype.--stackmapβ Display contents of the stackmap section.--string-dump=<section[,section,...]>,-pβ Display the specified section(s) as a list of strings.sectionmay 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. ELF girlies, this oneβs for you π
--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.--demangle,-Cβ Display demangled symbol names in the output.--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.--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.--notes,-nβ Display all notes.--pretty-printβ When used with--elf-output-style, JSON output will be formatted in a more readable format.--program-headers,--segments,-lβ Display the program headers.--raw-relrβ Do not decode relocations in RELR relocation sections when displaying them.--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. Mach-O besties, assemble π«Ά
--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-core, this is your moment β¨
--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. XCOFF tiny but mighty π
--auxiliary-headerβ Display XCOFF Auxiliary header.
π EXIT STATUS π
llvm-readobj returns 0 under normal operation. It returns a non-zero exit code if there were any errors.
π SEE ALSO π
llvm-nm(1), llvm-objdump(1), llvm-readelf(1)
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/).
πΈ COPYRIGHT πΈ
2003-2023, LLVM Project
Byeee bestie! This page comes from LLVM, footer source/version 15, date 2023-01-14, and title LLVM-READOBJ(1) β periodt. π
β¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms