* nm.c: Include libiberty.h.
authorIan Lance Taylor <ian@airs.com>
Wed, 14 Sep 1994 16:28:41 +0000 (16:28 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 14 Sep 1994 16:28:41 +0000 (16:28 +0000)
commit1896790ef9595f05c97424f6f7914c0c15d402ea
treeb223467a1f04f20163f9162604c4c1768a89e9ed
parent335129a9777b078b3e9945398daa1f61e3034087
* 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.
binutils/ChangeLog
binutils/binutils.texi
binutils/nm.1