From: "Thomas H. Williams" <thwill@connectfree.co.uk>
Subject: Hiding symbols in shared libraries on Digital UNIX
Date: Mon, 26 Mar 2001 12:12:47 +0100 [thread overview]
Message-ID: <99n7lo$ign$1@news.minx.net.uk> (raw)
Dear all,
I need to ensure that the functions in a shared libraries are accessed only
through the published interface. This is causing me problems on Digital UNIX
where according to everything I've read I need to use the -hidden
and -exported_symbol linker flags.
The command line I am using to link (via the C++ compiler is)
cxx -s -shared -Wl,-hidden -Wl,-exported_symbol, -Wl,'goc*' -o mylib.so
mylib1.o mylib2.o
I believe this should hide all the symbols except those with a 'goc' prefix,
but it doesn't seem to so. Can anyone tell me what I am doing wrong?
I am using Compaq C++ V6.2-024 for DIGITAL UNIX V4.0E (Rev. 1091) and ld
3.11.
Thanks in advance,
Tom Williams
thwill@connectfree.co.uk
reply other threads:[~2001-03-26 11:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox