patch to fix nm.c(print_object_filename_bsd) on FreeBSD

David O'Brien obrien@FreeBSD.org
Wed Apr 19 09:42:00 GMT 2000


On Tue, Apr 18, 2000 at 06:50:49PM -0700, Ian Lance Taylor wrote:
> This patch may be correct for all hosts.  I'm not sure.  The default
> output for nm should match that of the traditional BSD nm.
>
> I gather that what you are saying here is that nm -o, if invoked with
> multiple files, should print the filename on a separate line as well
> as printing it on the line with every symbol.

This is the snipit of lorder.sh that depended on the tradional behavior:

[I've converted the CSRG s.lorder.sh file to an RCS file for easier use]
revision 5.2
date: 1990/03/20 16:28:56;  author: bostic;  state: Exp;  lines: +56 -27
redo from scratch, needed to support '.po' suffixes
    nm -go $* | sed "
        /:$/ {
                s/://
                s/.*/& &/
                p
                d
        }


-- 
-- David    (obrien@NUXI.com)


More information about the Binutils mailing list