about summary refs log tree commit diff
path: root/sysdeps/i386/i586/mempcpy.S
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-08-26 07:59:15 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-26 07:59:32 -0700
commitb6e19c4bdcb6b7093a3913ce26f6ec50b9a6e0dc (patch)
tree8c131ae17edab03b1a093b04039f1dd4ab9202ad /sysdeps/i386/i586/mempcpy.S
parent38d22f9f48a84b441c5777aff103f5b980243b5f (diff)
downloadglibc-b6e19c4bdcb6b7093a3913ce26f6ec50b9a6e0dc.tar.gz
glibc-b6e19c4bdcb6b7093a3913ce26f6ec50b9a6e0dc.tar.xz
glibc-b6e19c4bdcb6b7093a3913ce26f6ec50b9a6e0dc.zip
Replace MEMPCPY_P/PIC with USE_AS_MEMPCPY/SHARED
Replace MEMPCPY_P with USE_AS_MEMPCPY in i586 memcpy.S to support i386
multi-arch memcpy.  Also we should check SHARED not PIC for libc.so
since libc.a may be compiled with PIC.

	* sysdeps/i386/i586/memcpy.S (MEMPCPY_P): Removed.
	Check USE_AS_MEMPCPY/SHARED instead of MEMPCPY_P/PIC.
	* sysdeps/i386/i586/mempcpy.S (USE_AS_MEMPCPY): New.
Diffstat (limited to 'sysdeps/i386/i586/mempcpy.S')
-rw-r--r--sysdeps/i386/i586/mempcpy.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/i386/i586/mempcpy.S b/sysdeps/i386/i586/mempcpy.S
index afc112d9d7..720a4c0923 100644
--- a/sysdeps/i386/i586/mempcpy.S
+++ b/sysdeps/i386/i586/mempcpy.S
@@ -1,3 +1,4 @@
+#define USE_AS_MEMPCPY
 #define memcpy __mempcpy
 #define __memcpy_chk __mempcpy_chk
 #include <sysdeps/i386/i586/memcpy.S>