Re: ARM position-independent code problem

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

 



On 01/02/2019 02:36, Xi Ruoyao wrote:
> On 2019-01-31 15:03 +0000, David Sherman wrote:
>> Is the global offset table section supposed to be relocated along with
>> the position-independent code so it stays at the same relative location
>> to the code?
> 
> Yes.  That's how GOT works.  Or how can the code find it?

That's the general behaviour with -fPIC and (-shared) shared objects on
Linux like systems because it is assumed that the distance between any 2
points at static link time is the same as the distance at run time.

Ramana


> 




[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