X86_64: Don't use PLT nor GOT in static archives [BZ #20750]
commitc9070e6305c08365c5f8b604bdca39c699d70cfa
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 28 Nov 2016 17:44:49 +0000 (28 09:44 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 28 Nov 2016 17:45:07 +0000 (28 09:45 -0800)
treeca1d9aec72ad11a8530e4fcef99d6a7deb576cda
parent389d1f1b232b3d6b9d73ee2c50e543ace6675621
X86_64: Don't use PLT nor GOT in static archives [BZ #20750]

There is no need to use PLT nor GOT in static archives to branch to a
function, regardless whether static archives is compiled with PIC or
not.  When static archives are used to create dynamic executable,
PLT/GOT may be used.  The resulting executable still works correctly.

[BZ #20750]
* sysdeps/x86_64/sysdep.h (JUMPTARGET): Check SHARED instead
of PIC.
ChangeLog
sysdeps/x86_64/sysdep.h