linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Accessing global symbols from shared library
@ 2001-02-07 19:16 Tim Moloney
  2001-02-07 21:21 ` Daniel Jacobowitz
  2001-02-08  7:45 ` William Blew
  0 siblings, 2 replies; 4+ messages in thread
From: Tim Moloney @ 2001-02-07 19:16 UTC (permalink / raw)
  To: linuxppc-dev, yellowdog-devel


I am currently trying to port a Solaris application to Linux.  The
Solaris application dynamically loads custom shared libraries which
can access symbols in the main executable.  This is not a clean
design, but it works.  From what I've seen so far, the Linux
runtime loader does not allow a shared library to access symbols in
the main executable.

If someone knows of a linker switch or something that allows shared
libraries to access global symbols, please let me know.

Tim Moloney

ManTech Real-time Systems Laboratory
2015 Cattlemen Road
Sarasota, FL  34232
(941) 377-6775 x208


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Accessing global symbols from shared library
  2001-02-07 19:16 Accessing global symbols from shared library Tim Moloney
@ 2001-02-07 21:21 ` Daniel Jacobowitz
  2001-02-08  7:45 ` William Blew
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2001-02-07 21:21 UTC (permalink / raw)
  To: linuxppc-dev


On Wed, Feb 07, 2001 at 02:16:35PM -0500, Tim Moloney wrote:
>
> I am currently trying to port a Solaris application to Linux.  The
> Solaris application dynamically loads custom shared libraries which
> can access symbols in the main executable.  This is not a clean
> design, but it works.  From what I've seen so far, the Linux
> runtime loader does not allow a shared library to access symbols in
> the main executable.
>
> If someone knows of a linker switch or something that allows shared
> libraries to access global symbols, please let me know.

You're probably looking for -rdynamic...

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Accessing global symbols from shared library
  2001-02-07 19:16 Accessing global symbols from shared library Tim Moloney
  2001-02-07 21:21 ` Daniel Jacobowitz
@ 2001-02-08  7:45 ` William Blew
  2001-02-08 14:49   ` [solved] " Tim Moloney
  1 sibling, 1 reply; 4+ messages in thread
From: William Blew @ 2001-02-08  7:45 UTC (permalink / raw)
  To: Tim Moloney; +Cc: linuxppc-dev, yellowdog-devel


On Wed, 7 Feb 2001, Tim Moloney wrote:

I suggest taking a look at the implementation of the X server. It achieves
such a feat routinely.

> I am currently trying to port a Solaris application to Linux.  The
> Solaris application dynamically loads custom shared libraries which
> can access symbols in the main executable.  This is not a clean
> design, but it works.  From what I've seen so far, the Linux
> runtime loader does not allow a shared library to access symbols in
> the main executable.
>
> If someone knows of a linker switch or something that allows shared
> libraries to access global symbols, please let me know.
>
> Tim Moloney
>
> ManTech Real-time Systems Laboratory
> 2015 Cattlemen Road
> Sarasota, FL  34232
> (941) 377-6775 x208
>
>
>

--
William Blew, wblew@home.com
Gamer by Choice, Geek by Birth


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [solved] Accessing global symbols from shared library
  2001-02-08  7:45 ` William Blew
@ 2001-02-08 14:49   ` Tim Moloney
  0 siblings, 0 replies; 4+ messages in thread
From: Tim Moloney @ 2001-02-08 14:49 UTC (permalink / raw)
  To: William Blew; +Cc: linuxppc-dev, yellowdog-devel


Thanks for the response.

After rereading the ld man page, I discovered the -export-dynamic
switch which does exactly what I want.  I was either blind or
confused the first time I read the ld man page.

Thanks again.

Tim Moloney

ManTech Real-time Systems Laboratory
2015 Cattlemen Road
Sarasota, FL  34232
(941) 377-6775 x208

----- Original Message -----
From: "William Blew" <wblew@home.com>
To: "Tim Moloney" <moloney@mrsl.com>
Cc: <linuxppc-dev@lists.linuxppc.org>;
<yellowdog-devel@lists.yellowdoglinux.com>
Sent: Thursday, February 08, 2001 2:45 AM
Subject: Re: Accessing global symbols from shared library


> On Wed, 7 Feb 2001, Tim Moloney wrote:
>
> I suggest taking a look at the implementation of the X server. It
achieves
> such a feat routinely.
>
> > I am currently trying to port a Solaris application to Linux.  The
> > Solaris application dynamically loads custom shared libraries which
> > can access symbols in the main executable.  This is not a clean
> > design, but it works.  From what I've seen so far, the Linux
> > runtime loader does not allow a shared library to access symbols in
> > the main executable.
> >
> > If someone knows of a linker switch or something that allows shared
> > libraries to access global symbols, please let me know.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-08 14:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-07 19:16 Accessing global symbols from shared library Tim Moloney
2001-02-07 21:21 ` Daniel Jacobowitz
2001-02-08  7:45 ` William Blew
2001-02-08 14:49   ` [solved] " Tim Moloney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).