Add --dyn-syms to readelf

binutils/

2010-01-11  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11146
	* NEWS: Mention --dyn-syms for readelf.

	* readelf.c (do_dyn_syms): New.
	(OPTION_DYN_SYMS): Likewise.
	(options): Add "dyn-syms".
	(usage): Add --dyn-syms.
	(parse_args): Handle OPTION_DYN_SYMS.
	(process_symbol_table): Handle do_dyn_syms.
	(process_object): Likewise.
	(process_archive): Likewise.

	* doc/binutils.texi: Document --dyn-syms for readelf.  Mention
	symbol hash tables for -D.

ld/testsuite/

2010-01-11  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/11146
	* ld-elf/dynsym1.d: New.
This commit is contained in:
H.J. Lu
2010-01-11 14:45:42 +00:00
parent 4d421096e0
commit 2c610e4b46
6 changed files with 79 additions and 11 deletions

View File

@@ -3894,6 +3894,7 @@ readelf [@option{-a}|@option{--all}]
[@option{-t}|@option{--section-details}]
[@option{-e}|@option{--headers}]
[@option{-s}|@option{--syms}|@option{--symbols}]
[@option{--dyn-syms}]
[@option{-n}|@option{--notes}]
[@option{-r}|@option{--relocs}]
[@option{-u}|@option{--unwind}]
@@ -3982,6 +3983,11 @@ Displays the detailed section information. Implies @option{-S}.
@cindex ELF symbol table information
Displays the entries in symbol table section of the file, if it has one.
@item --dyn-syms
@cindex ELF dynamic symbol table information
Displays the entries in dynamic symbol table section of the file, if it
has one.
@item -e
@itemx --headers
Display all the headers in the file. Equivalent to @option{-h -l -S}.
@@ -4021,8 +4027,8 @@ is any.
@item -D
@itemx --use-dynamic
When displaying symbols, this option makes @command{readelf} use the
symbol table in the file's dynamic section, rather than the one in the
symbols section.
symbol hash tables in the file's dynamic section, rather than the
symbol table sections.
@item -x <number or name>
@itemx --hex-dump=<number or name>