1 /** @file 2 * 3 * gcc sometimes likes to insert implicit calls to memcpy(). 4 * Unfortunately, there doesn't seem to be any way to prevent it from 5 * doing this, or to force it to use the optimised memcpy() as seen by 6 * C code; it insists on inserting a symbol reference to "memcpy". We 7 * therefore include wrapper functions just to keep gcc happy. 8 * 9 */ 10 11 #include <string.h> 12 13 void * gcc_implicit_memcpy ( void *dest, const void *src, 14 size_t len ) asm ( "memcpy" ); 15 16 void * gcc_implicit_memcpy ( void *dest, const void *src, size_t len ) { 17 return memcpy ( dest, src, len ); 18 } 19