← 返回命令列表

Linux command

llvm-objdump 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Disassemble object file

llvm-objdump -d [file.o]

Show all headers

llvm-objdump -x [file]

Show section headers

llvm-objdump -h [file]

Disassemble with source

llvm-objdump -dS [file]

Show relocations

llvm-objdump -r [file.o]

Show symbol table

llvm-objdump -t [file]

说明

llvm-objdump displays information about object files. Drop-in replacement for GNU objdump. Supports disassembly, header display, symbol tables, and relocation information for various binary formats.

参数

-d, --disassemble
Disassemble text sections.
-D, --disassemble-all
Disassemble all sections.
-S, --source
Show source with disassembly.
-h, --headers
Show section headers.
-x, --all-headers
Show all headers.
-t, --syms
Show symbol table.
-r, --reloc
Show relocations.
--demangle
Demangle symbol names.

FAQ

What is the llvm-objdump command used for?

llvm-objdump displays information about object files. Drop-in replacement for GNU objdump. Supports disassembly, header display, symbol tables, and relocation information for various binary formats.

How do I run a basic llvm-objdump example?

Run `llvm-objdump -d [file.o]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --disassemble do in llvm-objdump?

Disassemble text sections.