This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Load-time relocation of Code
Hello,
Thank you for your reply. The code has been compiled with the -fPIC option
using tricore-gcc but contains absolute addresses in the code. The
executable was linked at a particular address space and all data contain
fixed addresses within this address space.
Would I achieve relocatability if I were to modify all the addresses present
in every section to the ones relative to a new address space?
As for the loader, it is a very simple loader which copies data from the ELF
file to the memory and executes it. The loader is the thing I am working on
and I want to make the appropriate changes to it to make it work.
Please help me regarding this,
Thanks,
RV
--
View this message in context: http://www.nabble.com/Load-time-relocation-of-Code-tp22736473p22775200.html
Sent from the gcc - Help mailing list archive at Nabble.com.