Subject: bin/8502: GNU binutils/nm --size-sort broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mason@primenet.com.au>
List: netbsd-bugs
Date: 09/27/1999 19:50:48
>Number: 8502
>Category: bin
>Synopsis: nm --size-sort finds wrong size for some entries
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 27 19:50:01 1999
>Last-Modified:
>Originator: Geoff C. Wing
>Organization:
Geoff Wing : <gcw@pobox.com> Work URL: http://www.primenet.com.au/
Rxvt Stuff : <gcw@rxvt.org> Ego URL : http://pobox.com/~gcw/
Zsh Stuff : <gcw@zsh.org> Phone : (Australia) 0413 431 874
>Release: 19990926
>Environment:
System: NetBSD c.primenet.com.au 1.4K NetBSD 1.4K (C) #0: Mon Sep 20 17:21:41 EST 1999 open@rubicon.stables.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/C i386
>Description:
nm --size-sort sometimes calculates the size of some entries
incorrectly and then uses the incorrect value in the sorting.
% nm --size-sort /usr/src/bin/pax/ar_io.o | fgrep rcsid
00002270 t _rcsid
We better cut down on those rcsid[] strings. Look how much space
they take up! :-)
>How-To-Repeat:
An example object called screen.o:
% nm screen.o | fgrep ' T ' | sort
00000000 T blank_line
00000034 T blank_screen_mem
........
00005528 T setPosition
% nm --size-sort screen.o | egrep "(blank_line|setPosition)"
00000059 T setPosition
00005581 T blank_line
^^^^^^^^
This should be 00000034
>Fix:
?
>Audit-Trail:
>Unformatted: