This is the mail archive of the java-discuss@sourceware.cygnus.com 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: GC_data_start


But the symbol ".data" still resolves to a different address in each
shared object.  Try it... I think it'll give the same answer as the
GC_find_limit(&GC_copyright) techique.

Corey Minyard wrote to say that defining __data_start was considered a
mistake and will disappear from future glibc releases, Intel too.  He
also says the symbol "data_start" is a weak symbol and takes its
place... it works fine on my Intel RH6.0 box.  I'm going to try it on my
Alpha tonight.

Failing that, Tom's suggestion to look at the ELF header is a good
one... the same approach used in dyn_load.c may work for the main
executable.

"Boehm, Hans" wrote:
> I just asked David Mosberger here.  He points out that the symbold ".data"
> is still defined on demand, and can be accessed with
> 
> footype foo asm(".data");
> 
> I'm using that for now for all Linux platforms.  I would guess it's roughly
> as brittle as the other solutions, but it's less (i.e. no) code.

-- 
Jeff Sturm
jsturm@sigma6.com

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