lib: move memmove()
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:44:53 +0000 (14:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:44:53 +0000 (14:44 +0200)
commitb85fabd2e5003861293f131256252bca1afbaa91
treee7d38628586b4b86080fa4f8136ea45662dcea4b
parent54febb419b1749535bf2f462e9a3eb3086e35d0a
lib: move memmove()

By moving the function into an archive, x86 doesn't need to announce
anymore that is has its own implementation - symbol resolution by the
linker will now guarantee that the generic function remains unused, and
the forwarding to the compiler built-in gets done by the common header
anyway.

Allow the function to be individually linkable, discardable, and
overridable.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/string.c
xen/include/asm-x86/string.h
xen/lib/Makefile
xen/lib/memmove.c [new file with mode: 0644]