📄 objdump.1
字号:
.\" Copyright (c) 1991, 92, 93, 94, 95, 96, 97, 1998, 2000 Free Software Foundation.\" See section COPYING for conditions for redistribution.TH objdump 1 "5 November 1991" "Free Software Foundation" "GNU Development Tools".de BP.sp.ti \-.2i\(**...SH NAMEobjdump \- display information from object files..SH SYNOPSIS.hy 0.na.TP.B objdump.RB "[\|" \-a | \-\-archive\-headers "\|]" .RB "[\|" "\-b\ "\c.I bfdname\c.RB " | " "\-\-target="\c.I bfdname\c\&\|] .RB "[\|" \-C | \-\-demangle "\|]" .RB "[\|" \-\-debugging "\|]" .RB "[\|" \-d | \-\-disassemble "\|]" .RB "[\|" \-D | \-\-disassemble-all "\|]" .RB "[\|" \-\-disassemble\-zeroes "\|]" .RB "[\|" \-EB | \-EL | \-\-endian=\c.I {big|little}\c\&\|].RB "[\|" \-f | \-\-file\-headers "\|]".RB "[\|" \-h | \-\-section\-headers.RB "| " \-\-headers "\|]" .RB "[\|" \-i | \-\-info "\|]" .RB "[\|" "\-j\ "\c.I section\c.RB " | " "\-\-section="\c.I section\c\&\|] .RB "[\|" \-l | \-\-line\-numbers "\|]".RB "[\|" "\-m\ "\c.I machine\c.RB " | " "\-\-architecture="\c.I machine\c\&\|] .RB "[\|" \-p | \-\-private\-headers "\|]" .RB "[\|" \-\-prefix\-addresses "\|]" .RB "[\|" \-r | \-\-reloc "\|]" .RB "[\|" \-R | \-\-dynamic\-reloc "\|]" .RB "[\|" \-s | \-\-full\-contents "\|]".RB "[\|" \-S | \-\-source "\|]".RB "[\|" \-\-[no\-]show\-raw\-insn "\|]" .RB "[\|" \-\-stabs "\|]".RB "[\|" \-t | \-\-syms "\|]" .RB "[\|" \-T | \-\-dynamic\-syms "\|]" .RB "[\|" \-x | \-\-all\-headers "\|]".RB "[\|" "\-\-start\-address="\c.I address\c\&\|].RB "[\|" "\-\-stop\-address="\c.I address\c\&\|].RB "[\|" "\-\-adjust\-vma="\c.I offset\c\&\|].RB "[\|" \-\-version "\|]".RB "[\|" \-\-help "\|]".I objfile\c\&.\|.\|..ad b.hy 1.SH DESCRIPTION\c.B objdump\c\& displays information about one or more object files.The options control what particular information to display. Thisinformation is mostly useful to programmers who are working on thecompilation tools, as opposed to programmers who just want theirprogram to compile and work..PP.IR "objfile" .\|.\|.are the object files to be examined. When you specify archives,\c.B objdump\c\& shows information on each of the member object files..SH OPTIONSWhere long and short forms of an option are shown together, they areequivalent. At least one option besides.B \-l(\fB\-\-line\-numbers\fP) must be given..TP.B \-a.TP.B \-\-archive\-headersIf any files from \c.I objfile\c\& are archives, display the archiveheader information (in a format similar to `\|\c.B ls \-l\c\|'). Besides theinformation you could list with `\|\c.B ar tv\c\|', `\|\c.B objdump \-a\c\|' showsthe object file format of each archive member..TP.BI "\-\-adjust\-vma=" "offset"When dumping information, first add.I offsetto all the section addresses. This is useful if the section addressesdo not correspond to the symbol table, which can happen when puttingsections at particular addresses when using a format which can notrepresent section addresses, such as a.out..TP.BI "\-b " "bfdname"\c.TP.BI "\-\-target=" "bfdname"Specify the object-code format for the object files to be\c.I bfdname\c\&. This may not be necessary; \c.I objdump\c\& canautomatically recognize many formats. For example,.sp.brobjdump\ \-b\ oasys\ \-m\ vax\ \-h\ fu.o.br.spdisplay summary information from the section headers (`\|\c.B \-h\c\|') of`\|\c.B fu.o\c\|', which is explicitly identified (`\|\c.B \-m\c\|') as a Vax objectfile in the format produced by Oasys compilers. You can list theformats available with the `\|\c.B \-i\c\|' option..TP.B \-C.TP.B \-\-demangleDecode (\fIdemangle\fP) low-level symbol names into user-level names.Besides removing any initial underscore prepended by the system, thismakes C++ function names readable..TP.B \-\-debuggingDisplay debugging information. This attempts to parse debugginginformation stored in the file and print it out using a C like syntax.Only certain types of debugging information have been implemented..TP.B \-d.TP.B \-\-disassembleDisplay the assembler mnemonics for the machineinstructions from \c.I objfile\c\&.This option only disassembles those sections which areexpected to contain instructions..TP.B \-D.TP.B \-\-disassemble-allLike \fB\-d\fP, but disassemble the contents of all sections, not justthose expected to contain instructions..TP.B \-\-prefix\-addressesWhen disassembling, print the complete address on each line. This isthe older disassembly format..TP.B \-\-disassemble\-zeroesNormally the disassembly output will skip blocks of zeroes. Thisoption directs the disassembler to disassemble those blocks, just likeany other data..TP.B \-EB.TP.B \-EL.TP.BI "\-\-endian=" "{big|little}"Specify the endianness of the object files. This only affectsdisassembly. This can be useful when disassembling a file format whichdoes not describe endianness information, such as S-records..TP.B \-f.TP.B \-\-file\-headersDisplay summary information from the overall header ofeach file in \c.I objfile\c\&..TP.B \-h.TP.B \-\-section\-headers.TP.B \-\-headersDisplay summary information from the section headers of theobject file..TP.B \-\-helpPrint a summary of the options to.B objdumpand exit..TP.B \-i.TP.B \-\-infoDisplay a list showing all architectures and object formats availablefor specification with \c.B \-b\c\& or \c.B \-m\c\&..TP.BI "\-j " "name"\c.TP.BI "\-\-section=" "name"Display information only for section \c.I name\c\&..TP.B \-l.TP.B \-\-line\-numbersLabel the display (using debugging information) with the filenameand source line numbers corresponding to the object code shown.Only useful with \fB\-d\fP, \fB\-D\fP, or \fB\-r\fP..TP.BI "\-m " "machine"\c.TP.BI "\-\-architecture=" "machine"Specify the architecture to use when disassembling object files. Thiscan be useful when disassembling object files which do not describearchitecture information, such as S-records. You can list the availablearchitectures with the \fB\-i\fP option. .TP.B \-p.TP.B \-\-private\-headersPrint information that is specific to the object file format. Theexact information printed depends upon the object file format. Forsome object file formats, no additional information is printed..TP.B \-r.TP.B \-\-relocPrint the relocation entries of the file. If used with \fB\-d\fP or\fB\-D\fP, the relocations are printed interspersed with thedisassembly..TP.B \-R.TP.B \-\-dynamic\-relocPrint the dynamic relocation entries of the file. This is onlymeaningful for dynamic objects, such as certain types of sharedlibraries..TP.B \-s.TP.B \-\-full\-contentsDisplay the full contents of any sections requested..TP.B \-S.TP.B \-\-sourceDisplay source code intermixed with disassembly, if possible. Implies\fB-d\fP..TP.B \-\-show\-raw\-insnWhen disassembling instructions, print the instruction in hex as well asin symbolic form. This is the default except when.B \-\-prefix\-addressesis used..TP.B \-\-no\-show\-raw\-insnWhen disassembling instructions, do not print the instruction bytes.This is the default when.B \-\-prefix\-addressesis used..TP.B \-\-stabsDisplay the contents of the .stab, .stab.index, and .stab.exclsections from an ELF file. This is only useful on systems (such asSolaris 2.0) in which .stab debugging symbol-table entries are carriedin an ELF section. In most other file formats, debugging symbol-tableentries are interleaved with linkage symbols, and are visible in the.B \-\-symsoutput..TP.BI "\-\-start\-address=" "address"Start displaying data at the specified address. This affects the outputof the.B \-d\c,.B \-rand.B \-soptions..TP.BI "\-\-stop\-address=" "address"Stop displaying data at the specified address. This affects the outputof the.B \-d\c,.B \-rand.B \-soptions..TP.B \-t.TP.B \-\-symsSymbol Table. Print the symbol table entries of the file.This is similar to the information provided by the `\|\c.B nm\c\|' program..TP.B \-T.TP.B \-\-dynamic\-symsDynamic Symbol Table. Print the dynamic symbol table entries of thefile. This is only meaningful for dynamic objects, such as certaintypes of shared libraries. This is similar to the informationprovided by the `\|\c.B nm\c\|' program when given the.B \-D (\-\-dynamic)option..TP.B \-\-versionPrint the version number of.B objdumpand exit..TP.B \-x.TP.B \-\-all\-headersDisplay all available header information, including the symbol table andrelocation entries. Using `\|\c.B \-x\c\|' is equivalent to specifying all of`\|\c.B \-a \-f \-h \-r \-t\c\|'..SH "SEE ALSO".RB "`\|" binutils "\|'"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -