From owner-cvs-all Wed Dec 16 22:03:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA09247 for cvs-all-outgoing; Wed, 16 Dec 1998 22:03:44 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA09239 for ; Wed, 16 Dec 1998 22:03:39 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id RAA25943; Thu, 17 Dec 1998 17:03:31 +1100 Date: Thu, 17 Dec 1998 17:03:31 +1100 From: Bruce Evans Message-Id: <199812170603.RAA25943@godzilla.zeta.org.au> To: committers@FreeBSD.ORG, des@flood.ping.uio.no Subject: Re: hiding symbols Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk >How can I hide these symbols so they don't pollute the consumer's >namespace? In the good old a.out days, the following would have worked >(with an appropriate libfetch.sym): > >$ ld -r -o tmp.o *.o >$ symorder -c libfetch.sym tmp.o > >and then create a shared library with tmp.o. But how do I do it on an >Elf system? Don't hide symbols. It breaks debugging. Just give them a name in the implementation namespace. (Debugging of static symbols is already broken by ld -r hacks, but this should be fixed.) Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message