summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64/string/bcopy.S
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2008-11-02 01:10:54 +0000
committerpeter <peter@FreeBSD.org>2008-11-02 01:10:54 +0000
commitaa63008f13d7a07b62a85c25814374cb77dc7f84 (patch)
tree2cb2d6465da97e37710c7dadb37e63548e7e9c94 /lib/libc/amd64/string/bcopy.S
parent4b957256d0a1f1d1f7ae0cd19454ae63f4088568 (diff)
downloadFreeBSD-src-aa63008f13d7a07b62a85c25814374cb77dc7f84.zip
FreeBSD-src-aa63008f13d7a07b62a85c25814374cb77dc7f84.tar.gz
We've been lax about matching END() macros in asm code for some time. This
is used to set the ELF size attribute for functions. It isn't normally critical but some things can make use of it (gdb for stack traces). Valgrind needs it so I'm adding it in. The problem is present on all branches and on both i386 and amd64.
Diffstat (limited to 'lib/libc/amd64/string/bcopy.S')
-rw-r--r--lib/libc/amd64/string/bcopy.S9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/amd64/string/bcopy.S b/lib/libc/amd64/string/bcopy.S
index d58f591..f7aa6d1 100644
--- a/lib/libc/amd64/string/bcopy.S
+++ b/lib/libc/amd64/string/bcopy.S
@@ -86,3 +86,12 @@ ENTRY(bcopy)
movsq
cld
ret
+#ifdef MEMCOPY
+END(memcpy)
+#else
+#ifdef MEMMOVE
+END(memmove)
+#else
+END(bcopy)
+#endif
+#endif
OpenPOWER on IntegriCloud