This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Passing absolute address with PIC, is it possible?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]