This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Start and end of the GOT
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: Start and end of the GOT
- From: Joy Mukherjee <jmukherj at csgrad dot cs dot vt dot edu>
- Date: Fri, 14 Sep 2001 20:33:21 -0400 (EDT)
- Cc: <gcc at gcc dot gnu dot org>, <gcc-help at gcc dot gnu dot org>
True, but %ebx just contains the start address of the GOT. How do I get
the END address ? or in other words , how do I get its size ? Thank again
for your help .
Joy
Joy Mukherjee
Graduate Student,
Deptt. of CS,
Virginia Tech,
Blacksburg,VA - 24061.
On 14 Sep 2001, Alexandre Oliva wrote:
> On Sep 13, 2001, Joy Mukherjee <jmukherj@csgrad.cs.vt.edu> wrote:
>
> > Thanks again for your help . I do want to do it at runtime . I am
> > working on Red Hat Linux (glibc), intel x86
>
> AFAIK, all you have to do is to get the value of ebx in a function
> compiled with -fPIC.
>
> --
> Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist *Please* write to mailing lists, not to me
>
>