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:

> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]