On Wed, Apr 22, 2015 at 3:15 PM, Ramana Radhakrishnan
wrote:
> On Wed, Apr 22, 2015 at 5:34 PM, H.J. Lu wrote:
>> Normally, with PIE, GCC accesses globals that are extern to the module
>> using GOT. This is two instructions, one to get the address of the global
>> from GOT and the other to get t
On Wed, Apr 22, 2015 at 5:34 PM, H.J. Lu wrote:
> Normally, with PIE, GCC accesses globals that are extern to the module
> using GOT. This is two instructions, one to get the address of the global
> from GOT and the other to get the value. Examples:
>
> ---
> extern int a_glob;
> int
> main ()
>