Go to the previous, next section.
objdump [ -a | --archive-headers ] [ -b bfdname | --target=bfdname ] [ -d | --disassemble ] [ -D | --disassemble-all ] [ -f | --file-headers ] [ -h | --section-headers | --headers ] [ -i | --info ] [ -j section | --section=section ] [ -l | --line-numbers ] [ -m machine | --architecture=machine ] [ -r | --reloc ] [ -R | --dynamic-reloc ] [ -s | --full-contents ] [ --stabs ] [ -t | --syms ] [ -T | --dynamic-syms ] [ -x | --all-headers ] [ --version ] [ --help ] objfile...
objdump
displays information about one or more object files.
The options control what particular information to display. This
information is mostly useful to programmers who are working on the
compilation tools, as opposed to programmers who just want their
program to compile and work.
objfile... are the object files to be examined. When you
specify archives, objdump
shows information on each of the member
object files.
The long and short forms of options, shown here as alternatives, are equivalent. At least one option besides `-l' must be given.
-a
--archive-header
-b bfdname
--target=bfdname
For example,
objdump -b oasys -m vax -h fu.odisplays summary information from the section headers (`-h') of `fu.o', which is explicitly identified (`-m') as a VAX object file in the format produced by Oasys compilers. You can list the formats available with the `-i' option. See section Target Selection, for more information.
-d
--disassemble
-D
--disassemble-all
-f
--file-header
-h
--section-header
--header
File segments may be relocated to nonstandard addresses, for example by
using the `-Ttext', `-Tdata', or `-Tbss' options to
ld
. However, some object file formats, such as a.out, do not
store the starting address of the file segments. In those situations,
although ld
relocates the sections correctly, using `objdump
-h' to list the file section headers cannot show the correct addresses.
Instead, it shows the usual addresses, which are implicit for the
target.
--help
objdump
and exit.
-i
--info
-j name
--section=name
-l
--line-numbers
-m machine
--architecture=machine
-r
--reloc
-R
--dynamic-reloc
-s
--full-contents
--stabs
.stab
debugging symbol-table entries are carried in an ELF
section. In most other file formats, debugging symbol-table entries are
interleaved with linkage symbols, and are visible in the `--syms'
output.
-t
--syms
-T
--dynamic-syms
--version
objdump
and exit.
-x
--all-header
Go to the previous, next section.