This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: FYI: loading a class twice
- To: minyard at acm dot org
- Subject: Re: Patch: FYI: loading a class twice
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Thu, 6 Sep 2001 14:44:15 -0400 (EDT)
- cc: tromey at redhat dot com, Java Patch List <java-patches at gcc dot gnu dot org>
On 5 Sep 2001 minyard@acm.org wrote:
> Unfortunately, I don't think that's the way the ELF loader works. It
> always takes the most recently loaded code, but the oldest data. So
> if you load a class on top of a double-loaded class, it will take the
> code from the last class loaded, but the data items from the first
> class loaded.
That sounds bizarre to me. I assembled a tiny test case; it
demonstrates that data symbols are resolved just as text symbols are
(unless you use things like -Bsymbolic or ELF visibility modifiers).
This is on GNU/Linux, right? I'd like to see an example of what you're
talking about.
Jeff