This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Passing absolute address with PIC, is it possible?
- To: gcc-help at gcc dot gnu dot org
- Subject: Passing absolute address with PIC, is it possible?
- From: David Forth <dforth at aminocom dot com>
- Date: Fri, 18 May 2001 11:11:10 +0100
- Organization: Amino Communications
I would appreciate help with the following problem:
I have PIC and call another module to which I need to pass the
absolute address of a string. I am passing the offset value.
Can I configure gcc to add the absolute load address to the offset
when making the call to the external function?
Is a dynamic loader the only answer?
Thanks,
Dave