Date: 16 Dec 1998 19:09:09 +0100 From: Dag-Erling Smorgrav <des@flood.ping.uio.no> To: committers@FreeBSD.ORG Subject: hiding symbols Message-ID: <xzp1zm0rmbe.fsf@flood.ping.uio.no>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp1zm0rmbe.fsf>