summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh64
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh64')
-rw-r--r--libc/sysdeps/linux/sh64/__init_brk.c6
-rw-r--r--libc/sysdeps/linux/sh64/brk.c9
-rw-r--r--libc/sysdeps/linux/sh64/sbrk.c9
3 files changed, 8 insertions, 16 deletions
diff --git a/libc/sysdeps/linux/sh64/__init_brk.c b/libc/sysdeps/linux/sh64/__init_brk.c
index 9f5ee867b..bb0692448 100644
--- a/libc/sysdeps/linux/sh64/__init_brk.c
+++ b/libc/sysdeps/linux/sh64/__init_brk.c
@@ -4,13 +4,12 @@
#include <unistd.h>
#include <sys/syscall.h>
-void * __curbrk = 0;
+void * __curbrk attribute_hidden = 0;
#define __NR__brk __NR_brk
attribute_hidden _syscall1(void *, _brk, void *, ptr);
-extern int __init_brk (void);
-libc_hidden_proto(__init_brk)
+extern int __init_brk (void) attribute_hidden;
int
__init_brk (void)
{
@@ -25,4 +24,3 @@ __init_brk (void)
}
return 0;
}
-libc_hidden_def(__init_brk)
diff --git a/libc/sysdeps/linux/sh64/brk.c b/libc/sysdeps/linux/sh64/brk.c
index b26f74fec..c69c97ad6 100644
--- a/libc/sysdeps/linux/sh64/brk.c
+++ b/libc/sysdeps/linux/sh64/brk.c
@@ -9,14 +9,11 @@
#include <unistd.h>
#include <sys/syscall.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;
extern void *_brk(void *ptr) attribute_hidden;
+libc_hidden_proto(brk)
int brk(void * end_data_seg)
{
if (__init_brk () == 0)
diff --git a/libc/sysdeps/linux/sh64/sbrk.c b/libc/sysdeps/linux/sh64/sbrk.c
index fd760985e..a1ff2a148 100644
--- a/libc/sysdeps/linux/sh64/sbrk.c
+++ b/libc/sysdeps/linux/sh64/sbrk.c
@@ -4,14 +4,11 @@
#include <unistd.h>
#include <sys/syscall.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;
extern void *_brk(void *ptr) attribute_hidden;
+libc_hidden_proto(sbrk)
void *
sbrk(intptr_t increment)
{