PING^2: [PATCH] X86: Optimize access to globals in PIE with copy reloc

2015-12-04 Thread H.J. Lu
PING. -- Forwarded message -- From: H.J. Lu Date: Mon, Oct 19, 2015 at 1:04 PM Subject: PING: [PATCH] X86: Optimize access to globals in PIE with copy reloc To: GCC Patches , Richard Biener , Jakub Jelinek , Richard Henderson PING. -- Forwarded message

PING: [PATCH] X86: Optimize access to globals in PIE with copy reloc

2015-10-19 Thread H.J. Lu
PING. -- Forwarded message -- From: H.J. Lu Date: Wed, Jul 1, 2015 at 5:11 AM Subject: [PATCH] X86: Optimize access to globals in PIE with copy reloc To: gcc-patches@gcc.gnu.org Normally, with PIE, GCC accesses globals that are extern to the module using GOT. This is two

[PATCH] X86: Optimize access to globals in PIE with copy reloc

2015-07-01 Thread H.J. Lu
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 () { return a_glob; } --- With PIE, the generated code accesses g