about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-04-01 14:01:24 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-04-08 12:17:48 -0700
commit157c57198e893b4882d1feb98de2b0721ee408fc (patch)
tree33d81303f3bdf19f14058f2775f01a2da0106711
parentf817b9d36215ab60d58cc744d22773b4961a2c9b (diff)
downloadglibc-157c57198e893b4882d1feb98de2b0721ee408fc.tar.gz
glibc-157c57198e893b4882d1feb98de2b0721ee408fc.tar.xz
glibc-157c57198e893b4882d1feb98de2b0721ee408fc.zip
X86-64: Add dummy memcopy.h and wordcopy.c
Since x86-64 doesn't use memory copy functions, add dummy memcopy.h and
wordcopy.c to reduce code size.  It reduces the size of libc.so by about
1 KB.

	* sysdeps/x86_64/memcopy.h: New file.
	* sysdeps/x86_64/wordcopy.c: Likewise.
-rw-r--r--sysdeps/x86_64/memcopy.h1
-rw-r--r--sysdeps/x86_64/wordcopy.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/x86_64/memcopy.h b/sysdeps/x86_64/memcopy.h
new file mode 100644
index 0000000000..590b6cb16b
--- /dev/null
+++ b/sysdeps/x86_64/memcopy.h
@@ -0,0 +1 @@
+/* X86-64 doesn't use memory copy functions.  */
diff --git a/sysdeps/x86_64/wordcopy.c b/sysdeps/x86_64/wordcopy.c
new file mode 100644
index 0000000000..590b6cb16b
--- /dev/null
+++ b/sysdeps/x86_64/wordcopy.c
@@ -0,0 +1 @@
+/* X86-64 doesn't use memory copy functions.  */