summaryrefslogtreecommitdiff
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-25 08:32:09 -0700
commit38d75b36f9c32733c4c3987d67f05436a452ee24 (patch)
tree5ba03b04cfecb2ae5a9e47018424378ee7a346b5
parenta3fbfb073c7f6e448b51bfde70c78eebc04af096 (diff)
downloadglibc-hjl/cacheline/ifunc.tar.gz
X86-64: Add dummy memcopy.h and wordcopy.chjl/cacheline/ifunc
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. */