]> git.ipfire.org Git - thirdparty/glibc.git/commit
X86_64: Don't use PLT nor GOT in static archives [BZ #20750]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 28 Nov 2016 17:44:49 +0000 (09:44 -0800)
committerMike Frysinger <vapier@gentoo.org>
Thu, 9 Feb 2017 16:05:18 +0000 (11:05 -0500)
commitd012ea850680a2a94959f1c5136502a0f712b30a
tree5d47645a8ca6ab7649eb3467378ec211e608b4e8
parentb3b37f1a5559a7620e31c8053ed1b44f798f2b6d
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.

(cherry picked from commit c9070e6305c08365c5f8b604bdca39c699d70cfa)
ChangeLog
sysdeps/x86_64/sysdep.h