Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: resolving dynamic symbols
Date: Sat, 15 Feb 1997 10:45:35 -0600 (CST)	[thread overview]
Message-ID: <199702151645.KAA21059@atheist.tamu.edu> (raw)
In-Reply-To: <199702150419.UAA02511@icarus.icarus.com>

> I have two shared objects. The first one references symbols only in the
> wish program that loads it. It loads fine. The second object references
> symbols in the first loaded object, and fails to load.

You havn't given me quite enough information, but it doesn't sound
like a bug, it sounds like intended behaviour.

(1) In order for one dlopen'd object to see another, you must give
    the flag RTLD_GLOBAL to dlopen.

(2) You could alternatively add the first object to the second object's
    link line so that it will automatically be loaded along with
    the second.  This also adds the first object to the second object's
    symbol search path.

Given that neither of these are the case, I have no idea why it would
work on Intel or Sparc, and would seem to indicate a bug in ld.so on
those systems.

r~

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1997-02-15 16:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199702150419.UAA02511@icarus.icarus.com>
1997-02-15 16:45 ` Richard Henderson [this message]
1997-02-16  0:13 resolving dynamic symbols Stephen Williams
  -- strict thread matches above, loose matches on Subject: below --
1997-02-15  4:19 Stephen Williams
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