]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use PIC relocation in ALIAS_IMPL
authorAndrew Senkevich <andrew.senkevich@intel.com>
Wed, 17 Feb 2016 22:23:32 +0000 (14:23 -0800)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Mar 2016 18:41:24 +0000 (14:41 -0400)
Since libmvec_nonshared.a may be linked into shared objects, ALIAS_IMPL
should use PIC relocation.

[BZ #19590]
* sysdeps/x86_64/fpu/svml_finite_alias.S (ALIAS_IMPL): Use PIC
relocation.

(cherry picked from commit a5df3210a641c175138052037fcdad34298bfa4d)
(cherry picked from commit 2b8ab5c3f618e4d9e0a9147c24f8cf6bbf35a1d8)

sysdeps/x86_64/fpu/svml_finite_alias.S

index f8bcfeb5500b3e6619096754618f1fda6c99f037..aed16612661882be18ddf039e519d4ac7d30f69b 100644 (file)
@@ -23,8 +23,7 @@
 
 #define ALIAS_IMPL(alias, target) \
 ENTRY (alias); \
-       call target; \
-       ret; \
+       jmp *target@GOTPCREL(%rip); \
 END (alias)
 
        .text