Passing absolute address with PIC, is it possible?
David Forth
dforth@aminocom.com
Fri May 18 07:56:00 GMT 2001
On 18 May 2001 07:15:29 -0300, you wrote:
>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,
Thanks, I have looked at the GOT stuff and decided the overhead in
every image is too large and we do not have a dynamic loader so we are
going to roll our own.
Dave
More information about the Gcc-help
mailing list