diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-09-14 16:28:41 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-09-14 16:28:41 +0000 |
commit | 1896790ef9595f05c97424f6f7914c0c15d402ea (patch) | |
tree | b223467a1f04f20163f9162604c4c1768a89e9ed /binutils/binutils.texi | |
parent | 335129a9777b078b3e9945398daa1f61e3034087 (diff) | |
download | gdb-1896790ef9595f05c97424f6f7914c0c15d402ea.zip gdb-1896790ef9595f05c97424f6f7914c0c15d402ea.tar.gz gdb-1896790ef9595f05c97424f6f7914c0c15d402ea.tar.bz2 |
* nm.c: Include libiberty.h.
(sort_by_size): New static variable.
(long_options): Add --size-sort.
(usage): Mention --size-sort.
(numeric_forward): Make static. Change from void * to PTR.
(numeric_reverse): Likewise.
(non_numeric_forward, non_numeric_reverse): Likewise.
(sorters): Change declaration from void * to PTR.
(size_forward, sort_symbol_by_size): New static functions.
(display_rel_file): Handle sort_by_size.
(filter_symbols): If sort_by_size, discard absolute and undefined
symbols.
* binutils.texi (nm): Document --size-sort.
* nm.1: Document --size-sort.
PR 3611.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r-- | binutils/binutils.texi | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi index aeb67fb..4dc1dde 100644 --- a/binutils/binutils.texi +++ b/binutils/binutils.texi @@ -567,9 +567,9 @@ The GNU linker @code{ld} is now described in a separate manual. @smallexample nm [ -a | --debug-syms ] [ -g | --extern-only ] [ -B ] [ -C | --demangle ] [ -D | --dynamic ] - [ -s | --print-armap ] [ -A | -o | --print-file-name ] + [ -s | --print-armap ] [ -A | -o | --print-file-name ] [ -n | -v | --numeric-sort ] [ -p | --no-sort ] - [ -r | --reverse-sort ] [ -u | --undefined-only ] + [ -r | --reverse-sort ] [ --size-sort ] [ -u | --undefined-only ] [ -t @var{radix} | --radix=@var{radix} ] [ -P | --portability ] [ --target=@var{bfdname} ] [ -f @var{format} | --format=@var{format} ] [ --no-demangle ] [ -V | --version ] [ --help ] [ @var{objfile}@dots{} ] @@ -706,6 +706,11 @@ contain definitions for which names. Reverse the order of the sort (whether numeric or alphabetic); let the last come first. +@item --size-sort +Sort symbols by size. The size is computed as the difference between +the value of the symbol and the value of the symbol with the next higher +value. The size of the symbol is printed, rather than the value. + @item -t @var{radix} @itemx --radix=@var{radix} Use @var{radix} as the radix for printing the symbol values. It must be |