Address of variables in the bss/text segments of a shared library

Paul Brook paul@codesourcery.com
Wed Mar 14 00:42:00 GMT 2007


On Wednesday 14 March 2007 00:36, Scott Brooks wrote:
> When I use &__bss_start, &_end, in a shared library I get the addresses of
> the __bss_start and _end of the main application that has loaded the
> library.
>
> I would like to get the address of the bss/text segments of the shared
> library itself.

This is the wrong place to ask this question. This list is for the development 
of gcc.

You probably want dl_iterate_phdr.

Paul



More information about the Gcc mailing list