Re: Load-time relocation of Code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



u0606029 <surajraghavendran@xxxxxxxxx> writes:

> 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. 

Ultimately you are going to have to talk to whoever provided your
compiler to you.  tricore is not part of the standard FSF releases, so
we don't have any useful information about it.

It is possible that using -fPIC is generating dynamic relocations for an
ELF style dynamic linker.  To check this, run readelf -r on a fully
linked executable.  If you see relocations, then they are expected to be
processed at load time by the dynamic linker.  In that case, you will
want to modify your loader to process those relocations.  The details
will depend entirely upon the tricore tool chain.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux