From owner-cvs-all Wed Dec 16 10:22:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA21088 for cvs-all-outgoing; Wed, 16 Dec 1998 10:22:51 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA21083 for ; Wed, 16 Dec 1998 10:22:49 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id KAA11370; Wed, 16 Dec 1998 10:22:43 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id KAA19967; Wed, 16 Dec 1998 10:22:42 -0800 (PST) (envelope-from jdp@polstra.com) Date: Wed, 16 Dec 1998 10:22:42 -0800 (PST) Message-Id: <199812161822.KAA19967@vashon.polstra.com> To: des@flood.ping.uio.no Subject: Re: hiding symbols Newsgroups: polstra.freebsd.committers In-Reply-To: Organization: Polstra & Co., Seattle, WA Cc: committers@FreeBSD.ORG Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In article , Dag-Erling Smorgrav wrote: > > 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? Objcopy can do it. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message