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]
Other format: [Raw text]

Re: Load-time relocation of Code


u0606029 <surajraghavendran@gmail.com> writes:

> I am working on a TriCore/ T-Kernel based environment and I need to perform
> load time relocation. Currently, the environment does not support
> relocation, but supports Position independent code. What I want to achieve
> is, loading an application in any desired address space, although at Link
> time, an address space may have been allocated.
>
> How do I go about this? Is it enough if I change all section addresses,
> symbol table entries and got entries?

There are many possible approaches.  If the code is truly position
independent, though, then it should be very easy.  Just load it where
you want it to run.  The details of that are going to involve your
loader, which we know nothing about.

Ian


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