This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: patch to fix nm.c(print_object_filename_bsd) on FreeBSD
- To: binutils at sourceware dot cygnus dot com
- Subject: Re: patch to fix nm.c(print_object_filename_bsd) on FreeBSD
- From: msokolov at ivan dot Harhan dot ORG (Michael Sokolov)
- Date: Wed, 19 Apr 00 07:38:57 CDT
Ian Lance Taylor <ian@zembu.com> 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 guess I'm the authority on this one, being the current maintainer of the
traditional VAX BSD. The nm in the current CVS binutils behaves exactly as the
native 4.3BSD nm in this respect, so don't change anything Ian.
> 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.
On 4.3BSD it doesn't.
> Can anybody please check other BSD systems? Is that how the BSD nm
> behaves elsewhere as well? That is, what is the output of
> nm -o foo.o bar.o
> ?
$ hostname
ivan.Harhan.ORG
$ strings /vmunix | fgrep UNIX
4.3 BSD Quasijarus UNIX #0: Sun Mar 26 11:09:55 CST 2000
$ what /bin/nm
/bin/nm:
[...]
nm.c 4.8 4/7/87
[...]
$ nm -o /bin/sync /bin/tee
/bin/sync:0000008c T __cleanup
/bin/sync:0000009c T __exit
/bin/sync:00000408 D _copyright
/bin/sync:00000400 D _environ
/bin/sync:000004cc B _errno
/bin/sync:00000078 T _exit
/bin/sync:0000009c F _exit.o
/bin/sync:00000054 T _main
/bin/sync:0000004a T _moncontrol
/bin/sync:00000460 d _sccsid
/bin/sync:00000070 T _sync
/bin/sync:00000090 T cerror
/bin/sync:00000090 F cerror.o
/bin/sync:00000000 F crt0.o
/bin/sync:00000078 F exit.o
/bin/sync:0000008c F fakcu.o
/bin/sync:00000404 D mcount
/bin/sync:00000000 T start
/bin/sync:00000068 F sync.o
/bin/sync:00000054 F sync.o
/bin/tee:00000410 T __cleanup
/bin/tee:00000440 T __exit
/bin/tee:0000090c B _aflag
/bin/tee:0000031c T _creat
/bin/tee:00000800 D _environ
/bin/tee:00000908 B _errno
/bin/tee:000003fc T _exit
/bin/tee:00000440 F _exit.o
/bin/tee:0000041c T _fstat
/bin/tee:00000910 B _in
/bin/tee:000003b0 T _lseek
/bin/tee:00000054 T _main
/bin/tee:0000004a T _moncontrol
/bin/tee:0000085c D _n
/bin/tee:000003c0 T _open
/bin/tee:0000080c D _openf
/bin/tee:00002910 B _out
/bin/tee:000002f6 T _puts
/bin/tee:000003d0 T _read
/bin/tee:00000808 d _sccsid
/bin/tee:00000324 T _signal
/bin/tee:000003f0 T _sigvec
/bin/tee:00000282 T _stash
/bin/tee:000003e0 T _stat
/bin/tee:00000860 D _t
/bin/tee:0000042c T _write
/bin/tee:00000434 T cerror
/bin/tee:00000434 F cerror.o
/bin/tee:00000314 F creat.o
/bin/tee:00000000 F crt0.o
/bin/tee:000003fc F exit.o
/bin/tee:00000410 F fakcu.o
/bin/tee:00000414 F fstat.o
/bin/tee:000003a8 F lseek.o
/bin/tee:00000804 D mcount
/bin/tee:000003b8 F open.o
/bin/tee:000003c8 F read.o
/bin/tee:00000324 F signal.o
/bin/tee:000003e8 F sigvec.o
/bin/tee:00000000 T start
/bin/tee:000003d8 F stat.o
/bin/tee:00000054 F tee.o
/bin/tee:00000424 F write.o
--
Michael Sokolov Harhan Engineering Laboratory
Public Service Agent International Free Computing Task Force
International Engineering and Science Task Force
615 N GOOD LATIMER EXPY STE #4
DALLAS TX 75204-5852 USA
Phone: +1-214-824-7693 (Harhan Eng Lab office)
E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP) (UUCP coming soon)