lib: move memcpy()
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:44:35 +0000 (14:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Apr 2021 12:44:35 +0000 (14:44 +0200)
commit54febb419b1749535bf2f462e9a3eb3086e35d0a
tree18c1286cbad46d4cf14c9fbaee3287b353a7f6bd
parent8bd9c8d50315d5f3eb146c889ce629e5fcb18efa
lib: move memcpy()

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/memcpy.c [new file with mode: 0644]