diff --git a/liba/src/memcpy.c b/liba/src/memcpy.c index 90d05b266..51b531679 100644 --- a/liba/src/memcpy.c +++ b/liba/src/memcpy.c @@ -1,5 +1,8 @@ #include +// Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51205 +void * memcpy(void * dst, const void * src, size_t n) __attribute__((externally_visible)); + void * memcpy(void * dst, const void * src, size_t n) { char * destination = (char *)dst; char * source = (char *)src; diff --git a/liba/src/memset.c b/liba/src/memset.c index 75cd1d5d6..45f1f8947 100644 --- a/liba/src/memset.c +++ b/liba/src/memset.c @@ -1,5 +1,8 @@ #include +// Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51205 +void * memset(void * b, int c, size_t len) __attribute__((externally_visible)); + void * memset(void * b, int c, size_t len) { char * destination = (char *)b; while (len--) {