Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Eric Ding <ericding@applix.com>
To: axp-list@redhat.com
Subject: Re: BUG: probs with resolving functions in shared library
Date: 06 Aug 1998 12:30:36 -0400	[thread overview]
Message-ID: <yv4n29irs2b.fsf@tuxedo.applix.com> (raw)
In-Reply-To: Quant-X Alpha Linux Support's message of Thu, 6 Aug 1998 14:59:42 +0200

Hi Stefan,

thanks for your suggestions -- I'm not altogether sure they'll even be
possible in the real application, but let's stay with the stub for now; it
still appears that the fix only works partially.

We use the -export-dynamic flag because the shared library funcs do
occasionally need to access functions in the main executable.  Using the
method you detail below, I get a core dump when I try to access a function
in my "libmain.so" library from the libtest2.so library.  So while this
solution helps work around the scoping bug, it doesn't completely do for
our problem... any other ideas?

Eric

Quant-X Alpha Linux Support <stefan@sime.com> writes:

> I think the problem is in your head. ;-}
> The solution is easy (correct me if not...).

> You only must make shure that the main program does **not** need
> -export-dynamic.  That's really easy (at least here, maybe not for
> you...)

> a) make the main-program a shared library (this step needs (here) no code
> changes, only affects linking stage).

> b) use a stub (linked without -export-dynamic) to start the main program
> (library).


  reply	other threads:[~1998-08-06 16:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-05 22:48 BUG: probs with resolving functions in shared library Quant-X Alpha Linux Support
1998-08-06  2:38 ` Eric Ding
1998-08-06 12:59   ` Quant-X Alpha Linux Support
1998-08-06 16:30     ` Eric Ding [this message]
1998-08-06 21:24       ` Quant-X Alpha Linux Support
  -- strict thread matches above, loose matches on Subject: below --
1998-08-05 16:16 Eric Ding
1998-08-08 22:29 ` Richard Henderson
1998-08-10 15:54   ` Eric Ding
1998-08-10 17:52     ` Richard Henderson
1998-08-10 19:51       ` Eric Ding
1998-08-12 17:07   ` Eric Ding
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