patch-2.0.11 linux/arch/alpha/lib/memcpy.c

Next file: linux/arch/alpha/lib/memset.S
Previous file: linux/arch/alpha/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.10/linux/arch/alpha/lib/memcpy.c linux/arch/alpha/lib/memcpy.c
@@ -128,4 +128,8 @@
  * gcc-2.7.1 and newer generate calls to memset and memcpy.  So we
  * need to define that here:
  */
-asm (".weakext memcpy, __memcpy");
+#ifdef __ELF__
+ asm (".weak memcpy; memcpy = __memcpy");
+#else
+ asm (".weakext memcpy, __memcpy");
+#endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov