Joerg Schilling wrote:

> The problem is that I need an address from inside the module in case 
> I like to get the name for an arbitrary library handle. Do you believe that it
> should always work to try retrieving the address for "_DYNAMIC"?

Yes, I don't know of any dynamic objects that don't have a .dynamic
section, which is identified with this symbol.

There are a set of reserved symbol names generated by ld(1):

    http://docs.sun.com/app/docs/doc/817-1984/6mhm7pl18?a=view

Some of these might be missing (ie. no text segment = no _etext,
no .got section = no _GLOBAL_OFFSET_TABLE_, etc.)

It would be hard to image an image not having an _end.

_init and _fini are dependent on the compiler driver providing
the appropriate crt's.  People who build shared objects with
ld(1) directly won't get these symbols.

-- 

Rod.

Reply via email to