diff options
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/plugin.h | 4 | ||||
| -rw-r--r-- | apps/plugins/lib/gcc-support.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index ad726d6..bb27781 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -974,9 +974,9 @@ struct plugin_header { extern unsigned char plugin_start_addr[]; extern unsigned char plugin_end_addr[]; #define PLUGIN_HEADER \ - const struct plugin_api *rb DATA_ATTR USED_ATTR; \ + const struct plugin_api *rb DATA_ATTR; \ const struct plugin_header __header \ - __attribute__ ((section (".header"))) USED_ATTR = { \ + __attribute__ ((section (".header")))= { \ { PLUGIN_MAGIC, TARGET_ID, PLUGIN_API_VERSION, \ plugin_start_addr, plugin_end_addr }, plugin__start, &rb }; #else /* PLATFORM_HOSTED */ diff --git a/apps/plugins/lib/gcc-support.c b/apps/plugins/lib/gcc-support.c index 156dbf9..09a08fa 100644 --- a/apps/plugins/lib/gcc-support.c +++ b/apps/plugins/lib/gcc-support.c @@ -29,22 +29,22 @@ void __attribute__((naked)) __div0(void) } #endif -void USED_ATTR *memcpy(void *dest, const void *src, size_t n) +void *memcpy(void *dest, const void *src, size_t n) { return rb->memcpy(dest, src, n); } -void USED_ATTR *memset(void *dest, int c, size_t n) +void *memset(void *dest, int c, size_t n) { return rb->memset(dest, c, n); } -void USED_ATTR *memmove(void *dest, const void *src, size_t n) +void *memmove(void *dest, const void *src, size_t n) { return rb->memmove(dest, src, n); } -int USED_ATTR memcmp(const void *s1, const void *s2, size_t n) +int memcmp(const void *s1, const void *s2, size_t n) { return rb->memcmp(s1, s2, n); } |