This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Passing absolute address with PIC, is it possible?
- To: David Forth <dforth at aminocom dot com>
- Subject: Re: Passing absolute address with PIC, is it possible?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 18 May 2001 07:15:29 -0300
- Cc: gcc-help at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <cvs9gtch4rtmb1edoavgmkguo5ho15vlvc@4ax.com>
On May 18, 2001, David Forth <dforth@aminocom.com> wrote:
> Can I configure gcc to add the absolute load address to the offset
> when making the call to the external function?
That's what it would do, in general. When taking the address of a
global symbol in PIC, it would load it from the GOT; when taking it
from a local symbol, it would add the address of the GOT to the GOTOFF
of the symbol.
--
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