summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/internals/__uClibc_main.c2
-rw-r--r--libc/stdio/_stdio.c4
-rw-r--r--libc/stdlib/abort.c4
-rw-r--r--libc/stdlib/atexit.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c
index f3fda108b..bbb770af5 100644
--- a/libc/misc/internals/__uClibc_main.c
+++ b/libc/misc/internals/__uClibc_main.c
@@ -56,7 +56,7 @@ strong_alias(__stack_chk_guard,__guard)
/*
* Prototypes.
*/
-extern void weak_function _stdio_init(void);
+extern void weak_function _stdio_init(void) attribute_hidden;
extern int *weak_const_function __errno_location(void);
extern int *weak_const_function __h_errno_location(void);
#ifdef __UCLIBC_HAS_LOCALE__
diff --git a/libc/stdio/_stdio.c b/libc/stdio/_stdio.c
index 727f9e363..54319118f 100644
--- a/libc/stdio/_stdio.c
+++ b/libc/stdio/_stdio.c
@@ -176,7 +176,7 @@ void attribute_hidden __stdio_init_mutex(pthread_mutex_t *m)
/**********************************************************************/
/* We assume here that we are the only remaining thread. */
-void _stdio_term(void)
+void attribute_hidden _stdio_term(void)
{
#if defined(__STDIO_BUFFERS) || defined(__UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__)
register FILE *ptr;
@@ -238,7 +238,7 @@ void _stdio_term(void)
#endif
}
-void _stdio_init(void)
+void attribute_hidden _stdio_init(void)
{
#ifdef __STDIO_BUFFERS
int old_errno = errno;
diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c
index d24d1a94c..dbd816b4e 100644
--- a/libc/stdlib/abort.c
+++ b/libc/stdlib/abort.c
@@ -68,9 +68,9 @@ Cambridge, MA 02139, USA. */
#endif
#ifdef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
-extern void weak_function _stdio_term(void);
+extern void weak_function _stdio_term(void) attribute_hidden;
#endif
-extern void _exit __P((int __status)) __attribute__ ((__noreturn__));
+extern void _exit (int __status) __attribute__ ((__noreturn__));
static int been_there_done_that = 0;
/* Be prepared in case multiple threads try to abort() */
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c
index fcf85391a..4cec3f320 100644
--- a/libc/stdlib/atexit.c
+++ b/libc/stdlib/atexit.c
@@ -305,7 +305,7 @@ void __exit_handler(int status)
#endif
#ifdef L_exit
-extern void weak_function _stdio_term(void);
+extern void weak_function _stdio_term(void) attribute_hidden;
void (*__exit_cleanup) (int) = 0;
#ifdef __UCLIBC_HAS_THREADS__
pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;