From owner-cvs-all Wed Dec 16 10:09:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA19381 for cvs-all-outgoing; Wed, 16 Dec 1998 10:09:21 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA19376 for ; Wed, 16 Dec 1998 10:09:18 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.1/8.9.1) id TAA14799; Wed, 16 Dec 1998 19:09:10 +0100 (CET) (envelope-from des) To: committers@FreeBSD.ORG Subject: hiding symbols From: Dag-Erling Smorgrav Date: 16 Dec 1998 19:09:09 +0100 Message-ID: Lines: 26 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk libfetch contains a few utility functions which are used in several translation units within the library, but shouldn't be exported to libfetch consumers: des@flood ~/FreeBSD/libfetch/libfetch$ nm libfetch.so | awk '$2 ~ /[BT]/ { print $3 }' [...] fetch_info fetch_seterr fetch_syserr http_auth http_base64 initialize_ftch_error_table 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? DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message