GC_data_start
Jeff Sturm
jsturm@sigma6.com
Wed Nov 17 16:29:00 GMT 1999
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
More information about the Java
mailing list