This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch: FYI: loading a class twice




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]