* Linker Problems
@ 2001-04-09 3:22 Michael Thomson
2001-04-16 19:21 ` Jeff Donsbach
0 siblings, 1 reply; 2+ messages in thread
From: Michael Thomson @ 2001-04-09 3:22 UTC (permalink / raw)
Hi,
I'm new to the Tru64 OS and am trying to port some software to the
platform.
The problem I am running into is the linker does not seem to be doing
what "I think i'm trying to tell it"
I have a archive library that I want to include in shared object but at
the end of the so's creation I do not want to see any of the archives
entry points externally available.
I have been trying to use the -hidden and -none flags on the link and I
cannot seem to get rid of the archives entry points.
Anyone got any idea of what I'm doing wrong.
ld -shared -o fred.so fred.o stuff.o -hidden extras.a
If this is the wrong approach, what is the correct approach, Is there an
option to specify a list of entry points are that to be externalized by
the .so?
Thanks,
Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Linker Problems
2001-04-09 3:22 Linker Problems Michael Thomson
@ 2001-04-16 19:21 ` Jeff Donsbach
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Donsbach @ 2001-04-16 19:21 UTC (permalink / raw)
I think you want to also include the "-all" flag before your archive. I.e.
ld -shared -o fred.so fred.o stuff.o -hidden -all extras.a -none -non_hidden
You will probably also want to include at least "-lc" on the end of that to
avoid any "Unresolved Symbol" warnings. I usually use "cc" or "cxx" as the
driver to "ld" to do this which will include some libraries implicitly
(-lc, -lcxx, -lexc for instance).
Jeff Donsbach
Partners Engineering
Compaq Computer Corp
Michael Thomson <michael@canb.auug.org.au> wrote in message
news:3AD12B02.CFD2333E@canb.auug.org.au...
> Hi,
>
> I'm new to the Tru64 OS and am trying to port some software to the
> platform.
>
> The problem I am running into is the linker does not seem to be doing
> what "I think i'm trying to tell it"
>
> I have a archive library that I want to include in shared object but at
> the end of the so's creation I do not want to see any of the archives
> entry points externally available.
>
> I have been trying to use the -hidden and -none flags on the link and I
> cannot seem to get rid of the archives entry points.
>
> Anyone got any idea of what I'm doing wrong.
>
> ld -shared -o fred.so fred.o stuff.o -hidden extras.a
>
> If this is the wrong approach, what is the correct approach, Is there an
> option to specify a list of entry points are that to be externalized by
> the .so?
>
> Thanks,
> Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-16 19:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-09 3:22 Linker Problems Michael Thomson
2001-04-16 19:21 ` Jeff Donsbach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox