From 75437079e4c5a7416052940ca641a41ddbf6f5fd Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 9 Jun 2016 04:38:34 -0700 Subject: X86-64: Add dummy memcopy.h and wordcopy.c Since x86-64 no longer uses 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. --- ChangeLog | 5 +++++ sysdeps/x86_64/memcopy.h | 1 + sysdeps/x86_64/wordcopy.c | 1 + 3 files changed, 7 insertions(+) create mode 100644 sysdeps/x86_64/memcopy.h create mode 100644 sysdeps/x86_64/wordcopy.c diff --git a/ChangeLog b/ChangeLog index e5a6209053..9c417f2321 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-06-09 H.J. Lu + + * sysdeps/x86_64/memcopy.h: New file. + * sysdeps/x86_64/wordcopy.c: Likewise. + 2016-06-09 Florian Weimer Prevent GCC 6 from including /usr/include/stdlib.h. 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. */ -- cgit 1.4.1