This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Address of variables in the bss/text segments of a shared library
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Scott Brooks <scott at hermitworksentertainment dot com>
- Date: Wed, 14 Mar 2007 00:42:27 +0000
- Subject: Re: Address of variables in the bss/text segments of a shared library
- References: <200703131836.08019.scott@hermitworksentertainment.com>
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