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]

Passing absolute address with PIC, is it possible?



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


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