diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-04-07 02:04:34 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-04-07 02:04:34 +0000 |
commit | de3b08ac2e083df66d852deef55da73106dc1852 (patch) | |
tree | 1bca9a4784c98ba8d05511a9fb07580fb67c6251 /binutils/objdump.1 | |
parent | dfc1c00613b3fc235bad8be97041d79583c85399 (diff) | |
download | gdb-de3b08ac2e083df66d852deef55da73106dc1852.zip gdb-de3b08ac2e083df66d852deef55da73106dc1852.tar.gz gdb-de3b08ac2e083df66d852deef55da73106dc1852.tar.bz2 |
Added -D (--dynamic) option to nm and -T (--dynamic-syms) and -R
(--dynamic-reloc) arguments to objdump.
* nm.c (dynamic): New static variable.
(long_options): Added "dynamic".
(usage): Mention -D and --dynamic.
(main): Add D to getopt string. Handle -D by setting dynamic.
(display_rel_file): If dynamic is non-zero, read dynamic symbols
rather than normal symbols.
* nm.1: Updated for -D (--dynamic) option.
* objdump.c (dump_dynamic_symtab): New global variable.
(dump_dynamic_reloc_info): New global variable.
(dynsyms, dynsymcount): New global variables.
(usage): Mention -R, -T, --dynamic-syms and --dynamic-reloc.
(long_options): Added "dynamic-reloc" and "dynamic-syms".
(slurp_symtab): If no symbols, return rather than exit.
(slurp_dynamic_symtab): New function.
(display_bfd): Handle dump_dynamic_symtab and
dump_dynamic_reloc_info.
(dump_symbols): Take new dynamic argument, indicating whether to
display dynamic symbols.
(dump_relocs): Move most printing into dump_reloc_set.
(dump_dynamic_relocs): New function.
(dump_reloc_set): New function, extracted from dump_relocs.
(main): Add R and T to getopt string. Handle -T by setting
dump_dynamic_symtab and -R by setting dump_dynamic_reloc_info.
* objdump.1: Updated for -R (--dynamic-reloc) and -T
(--dynamic-syms) options.
* binutils.texi: Updated for new nm and objdump options.
Diffstat (limited to 'binutils/objdump.1')
-rw-r--r-- | binutils/objdump.1 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/binutils/objdump.1 b/binutils/objdump.1 index ab88bdc..4050c4b 100644 --- a/binutils/objdump.1 +++ b/binutils/objdump.1 @@ -38,9 +38,11 @@ objdump \- display information from object files. .I machine\c \&\|] .RB "[\|" \-r | \-\-reloc "\|]" +.RB "[\|" \-R | \-\-dynamic\-reloc "\|]" .RB "[\|" \-s | \-\-full\-contents "\|]" .RB "[\|" \-\-stabs "\|]" .RB "[\|" \-t | \-\-syms "\|]" +.RB "[\|" \-T | \-\-dynamic\-syms "\|]" .RB "[\|" \-x | \-\-all\-headers "\|]" .RB "[\|" \-\-version "\|]" .RB "[\|" \-\-help "\|]" @@ -200,6 +202,14 @@ option. Print the relocation entries of the file. .TP +.B \-R +.TP +.B \-\-dynamic\-reloc +Print the dynamic relocation entries of the file. This is only +meaningful for dynamic objects, such as certain types of shared +libraries. + +.TP .B \-s .TP .B \-\-full\-contents @@ -224,6 +234,19 @@ This is similar to the information provided by the `\|\c \|' program. .TP +.B \-T +.TP +.B \-\-dynamic\-syms +Dynamic Symbol Table. Print the dynamic symbol table entries of the +file. This is only meaningful for dynamic objects, such as certain +types of shared libraries. This is similar to the information +provided by the `\|\c +.B nm\c +\|' program when given the +.B \-D (\-\-dynamic) +option. + +.TP .B \-\-version Print the version number of .B objdump |