about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Senkevich <andrew.senkevich@intel.com>2016-02-17 14:23:32 -0800
committerMike Frysinger <vapier@gentoo.org>2016-03-30 14:41:24 -0400
commit3ffe1a9e559b88ed2c1096a798cec5fb17194e99 (patch)
tree030b20c7208f4f22b116fbcb7197cfdc5a4a9884
parent209606141fb74f9bfa8ad4ca56900077f0cad2b7 (diff)
downloadglibc-3ffe1a9e559b88ed2c1096a798cec5fb17194e99.tar.gz
glibc-3ffe1a9e559b88ed2c1096a798cec5fb17194e99.tar.xz
glibc-3ffe1a9e559b88ed2c1096a798cec5fb17194e99.zip
Use PIC relocation in ALIAS_IMPL
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)
-rw-r--r--sysdeps/x86_64/fpu/svml_finite_alias.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/x86_64/fpu/svml_finite_alias.S b/sysdeps/x86_64/fpu/svml_finite_alias.S
index f8bcfeb550..aed1661266 100644
--- a/sysdeps/x86_64/fpu/svml_finite_alias.S
+++ b/sysdeps/x86_64/fpu/svml_finite_alias.S
@@ -23,8 +23,7 @@
 
 #define ALIAS_IMPL(alias, target) \
 ENTRY (alias); \
-	call target; \
-	ret; \
+	jmp *target@GOTPCREL(%rip); \
 END (alias)
 
 	.text