Patch: FYI: loading a class twice
Jeff Sturm
jsturm@one-point.com
Thu Sep 6 11:19:00 GMT 2001
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
More information about the Java-patches
mailing list