2016-02-24 19:10:42 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
2017-03-23 19:15:33 +00:00
|
|
|
// Link to the memcpy symbol with version 2.2.5 instead of the newer 2.14 one
|
|
|
|
// since they are functionaly equivalent, but using the old one allows 4coder
|
|
|
|
// to run on older distros without glibc >= 2.14
|
2016-02-24 19:10:42 +00:00
|
|
|
|
|
|
|
extern "C" {
|
2017-03-23 19:15:33 +00:00
|
|
|
asm (".symver memcpy, memcpy@GLIBC_2.2.5");
|
|
|
|
void *__wrap_memcpy(void *dest, const void *src, size_t n){
|
|
|
|
return memcpy(dest, src, n);
|
|
|
|
}
|
2016-02-24 19:10:42 +00:00
|
|
|
}
|