move vtm/jni to separate c project
This commit is contained in:
18
jni/memcpy_wrap.c
Normal file
18
jni/memcpy_wrap.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef __ANDROID__
|
||||
#ifdef __linux__
|
||||
#ifdef __x86_64__
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
|
||||
|
||||
void *__wrap_memcpy(void * destination, const void * source, size_t num)
|
||||
{
|
||||
return memcpy(destination, source, num);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user