Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Hiding symbols in shared libraries on Digital UNIX
@ 2001-03-26 11:12 Thomas H. Williams
  0 siblings, 0 replies; only message in thread
From: Thomas H. Williams @ 2001-03-26 11:12 UTC (permalink / 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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-03-26 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-26 11:12 Hiding symbols in shared libraries on Digital UNIX Thomas H. Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox