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 ad726d61bf..bb2778164b 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -974,9 +974,9 @@ struct plugin_header { | |||
974 | extern unsigned char plugin_start_addr[]; | 974 | extern unsigned char plugin_start_addr[]; |
975 | extern unsigned char plugin_end_addr[]; | 975 | extern unsigned char plugin_end_addr[]; |
976 | #define PLUGIN_HEADER \ | 976 | #define PLUGIN_HEADER \ |
977 | const struct plugin_api *rb DATA_ATTR USED_ATTR; \ | 977 | const struct plugin_api *rb DATA_ATTR; \ |
978 | const struct plugin_header __header \ | 978 | const struct plugin_header __header \ |
979 | __attribute__ ((section (".header"))) USED_ATTR = { \ | 979 | __attribute__ ((section (".header")))= { \ |
980 | { PLUGIN_MAGIC, TARGET_ID, PLUGIN_API_VERSION, \ | 980 | { PLUGIN_MAGIC, TARGET_ID, PLUGIN_API_VERSION, \ |
981 | plugin_start_addr, plugin_end_addr }, plugin__start, &rb }; | 981 | plugin_start_addr, plugin_end_addr }, plugin__start, &rb }; |
982 | #else /* PLATFORM_HOSTED */ | 982 | #else /* PLATFORM_HOSTED */ |
diff --git a/apps/plugins/lib/gcc-support.c b/apps/plugins/lib/gcc-support.c index 156dbf93eb..09a08fa9f5 100644 --- a/apps/plugins/lib/gcc-support.c +++ b/apps/plugins/lib/gcc-support.c | |||
@@ -29,22 +29,22 @@ void __attribute__((naked)) __div0(void) | |||
29 | } | 29 | } |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | void USED_ATTR *memcpy(void *dest, const void *src, size_t n) | 32 | void *memcpy(void *dest, const void *src, size_t n) |
33 | { | 33 | { |
34 | return rb->memcpy(dest, src, n); | 34 | return rb->memcpy(dest, src, n); |
35 | } | 35 | } |
36 | 36 | ||
37 | void USED_ATTR *memset(void *dest, int c, size_t n) | 37 | void *memset(void *dest, int c, size_t n) |
38 | { | 38 | { |
39 | return rb->memset(dest, c, n); | 39 | return rb->memset(dest, c, n); |
40 | } | 40 | } |
41 | 41 | ||
42 | void USED_ATTR *memmove(void *dest, const void *src, size_t n) | 42 | void *memmove(void *dest, const void *src, size_t n) |
43 | { | 43 | { |
44 | return rb->memmove(dest, src, n); | 44 | return rb->memmove(dest, src, n); |
45 | } | 45 | } |
46 | 46 | ||
47 | int USED_ATTR memcmp(const void *s1, const void *s2, size_t n) | 47 | int memcmp(const void *s1, const void *s2, size_t n) |
48 | { | 48 | { |
49 | return rb->memcmp(s1, s2, n); | 49 | return rb->memcmp(s1, s2, n); |
50 | } | 50 | } |