From owner-freebsd-current Sun Sep 6 10:03:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA04006 for freebsd-current-outgoing; Sun, 6 Sep 1998 10:03:13 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [209.118.174.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA04001 for ; Sun, 6 Sep 1998 10:03:10 -0700 (PDT) (envelope-from chuckr@glue.umd.edu) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.1/8.8.5) with SMTP id MAA24921 for ; Sun, 6 Sep 1998 12:01:18 -0400 (EDT) Date: Sun, 6 Sep 1998 12:01:18 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@picnic.mat.net To: freebsd-current@FreeBSD.ORG Subject: nm Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I notice that nm is one of those utils that has, like ld, completely different versions for aout and for elf. I just tried to use nm on an aout lib (choke, hack!) As a suggestion, does it seem reasonable to have a wrapper for nm such that it read ONLY the -elf or -aout flag, stripped it off, and then dispatched either the nm-elf or nm-aout tool? If there was neither flag in existence, it could look for OBJFORMAT in the environment, and if that failed, use /etc/objformat, else give an error message and die. This would allow both aout and elf installs of nm to coexist. For sake of speed, it could be a C program (it's pretty trivial code). Would that work? I mean, are there any drawbacks I haven't seen? I'm not certain I'm ready to suggest that approach for ld, yet, seeing as that would materially affect 'make world' speeds. This would probably be a candidate for variant symlinks, if we had them, wouldn't it? ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic (FreeBSD-current) (301) 220-2114 | and jaunt (NetBSD). ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message