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 >