Message ID | CAKv+Gu9brQ4AYznV0TbA-GKNUdehU=gdyLZRce4epyJ+KsWQqg@mail.gmail.com |
---|---|
State | New |
Headers | show |
--- a/ArmPkg/Library/BaseMemoryLibStm/AArch64/CopyMem.c +++ b/ArmPkg/Library/BaseMemoryLibStm/AArch64/CopyMem.c @@ -144,3 +144,10 @@ InternalMemCopyMem ( } return DestinationBuffer; } + +// +// Make this implementation satisfy references to the intrinsic memcpy() that +// may be emitted by the compiler. +// +__attribute__((__weak__, __alias__("InternalMemCopyMem"))) +void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);