diff options
Diffstat (limited to 'libc/sysdeps/linux/cris')
-rw-r--r-- | libc/sysdeps/linux/cris/__init_brk.c | 6 | ||||
-rw-r--r-- | libc/sysdeps/linux/cris/brk.c | 9 | ||||
-rw-r--r-- | libc/sysdeps/linux/cris/sbrk.c | 9 |
3 files changed, 8 insertions, 16 deletions
diff --git a/libc/sysdeps/linux/cris/__init_brk.c b/libc/sysdeps/linux/cris/__init_brk.c index df41f9b4c..c8c6a37e7 100644 --- a/libc/sysdeps/linux/cris/__init_brk.c +++ b/libc/sysdeps/linux/cris/__init_brk.c @@ -5,10 +5,9 @@ #include <errno.h> #include "sysdep.h" -void * __curbrk = 0; +void * __curbrk attribute_hidden = 0; -extern int __init_brk (void); -libc_hidden_proto(__init_brk) +extern int __init_brk (void) attribute_hidden; int __init_brk (void) { @@ -31,4 +30,3 @@ __init_brk (void) } return 0; } -libc_hidden_def(__init_brk) diff --git a/libc/sysdeps/linux/cris/brk.c b/libc/sysdeps/linux/cris/brk.c index 8183aabf3..938b15714 100644 --- a/libc/sysdeps/linux/cris/brk.c +++ b/libc/sysdeps/linux/cris/brk.c @@ -9,13 +9,10 @@ #include <errno.h> #include "sysdep.h" -libc_hidden_proto(brk) - -extern void * __curbrk; - -extern int __init_brk (void); -libc_hidden_proto(__init_brk) +extern void * __curbrk attribute_hidden; +extern int __init_brk (void) attribute_hidden; +libc_hidden_proto(brk) int brk(void * end_data_seg) { if (__init_brk () == 0) { diff --git a/libc/sysdeps/linux/cris/sbrk.c b/libc/sysdeps/linux/cris/sbrk.c index 934dc90c4..f3fab95bb 100644 --- a/libc/sysdeps/linux/cris/sbrk.c +++ b/libc/sysdeps/linux/cris/sbrk.c @@ -10,13 +10,10 @@ #include <errno.h> #include "sysdep.h" -libc_hidden_proto(sbrk) - -extern void * __curbrk; - -extern int __init_brk (void); -libc_hidden_proto(__init_brk) +extern void * __curbrk attribute_hidden; +extern int __init_brk (void) attribute_hidden; +libc_hidden_proto(sbrk) void * sbrk(intptr_t increment) { |