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-05-25 10:10:45 -0700
commit85702d388d909d38f06c510c4504561df94d99bd (patch)
treedfe4a7a2c552a1a7aba8bb175fdec7d240c3400a
parent550bdb5f6b24eb2422f0b0c3a4c81c4665f132ff (diff)
downloadglibc-hjl/erms/ifunc.tar.gz
X86-64: Add dummy memcopy.h and wordcopy.chjl/erms/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. */