Ver Fonte

Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, most of global data relocations are back

Peter S. Mazinger há 18 anos atrás
pai
commit
42c1ad48fa
81 ficheiros alterados com 9 adições e 197 exclusões
  1. 0 1
      libc/inet/herror.c
  2. 0 2
      libc/inet/resolv.c
  3. 0 1
      libc/inet/rpc/auth_unix.c
  4. 0 1
      libc/inet/rpc/clnt_tcp.c
  5. 0 1
      libc/inet/rpc/clnt_udp.c
  6. 0 1
      libc/inet/rpc/clnt_unix.c
  7. 0 1
      libc/inet/rpc/rcmd.c
  8. 0 1
      libc/inet/rpc/rpc_private.h
  9. 0 1
      libc/inet/rpc/svc_tcp.c
  10. 0 1
      libc/inet/rpc/svc_udp.c
  11. 0 1
      libc/inet/rpc/svc_unix.c
  12. 0 1
      libc/inet/rpc/xdr.c
  13. 0 1
      libc/inet/rpc/xdr_array.c
  14. 0 1
      libc/inet/rpc/xdr_rec.c
  15. 0 1
      libc/inet/rpc/xdr_reference.c
  16. 0 1
      libc/misc/assert/__assert.c
  17. 0 1
      libc/misc/error/err.c
  18. 0 2
      libc/misc/error/error.c
  19. 0 5
      libc/misc/gnu/obstack.c
  20. 3 11
      libc/misc/internals/__uClibc_main.c
  21. 0 11
      libc/misc/locale/locale.c
  22. 0 6
      libc/misc/time/time.c
  23. 0 3
      libc/misc/wchar/wchar.c
  24. 0 3
      libc/misc/wctype/_wctype.c
  25. 0 2
      libc/misc/wordexp/wordexp.c
  26. 0 3
      libc/stdio/__fsetlocking.c
  27. 0 4
      libc/stdio/_fopen.c
  28. 0 3
      libc/stdio/_fpmaxtostr.c
  29. 0 3
      libc/stdio/_scanf.c
  30. 0 11
      libc/stdio/_stdio.c
  31. 0 6
      libc/stdio/_stdio.h
  32. 0 3
      libc/stdio/_uintmaxtostr.c
  33. 0 8
      libc/stdio/_vfprintf.c
  34. 0 1
      libc/stdio/fflush.c
  35. 1 3
      libc/stdio/gets.c
  36. 0 1
      libc/stdio/perror.c
  37. 0 2
      libc/stdlib/_atexit.c
  38. 0 3
      libc/stdlib/_strtod.c
  39. 0 1
      libc/stdlib/getenv.c
  40. 0 1
      libc/stdlib/malloc-standard/mallinfo.c
  41. 0 1
      libc/stdlib/malloc-standard/malloc.c
  42. 0 1
      libc/stdlib/malloc-standard/malloc.h
  43. 0 1
      libc/stdlib/malloc/malloc.h
  44. 0 1
      libc/stdlib/setenv.c
  45. 0 3
      libc/stdlib/stdlib.c
  46. 0 2
      libc/string/_collate.c
  47. 0 1
      libc/string/psignal.c
  48. 1 1
      libc/sysdeps/linux/alpha/brk.S
  49. 0 3
      libc/sysdeps/linux/arm/brk.c
  50. 0 3
      libc/sysdeps/linux/bfin/brk.c
  51. 0 1
      libc/sysdeps/linux/common/getpagesize.c
  52. 0 1
      libc/sysdeps/linux/common/sbrk.c
  53. 0 3
      libc/sysdeps/linux/cris/__init_brk.c
  54. 0 1
      libc/sysdeps/linux/cris/brk.c
  55. 0 1
      libc/sysdeps/linux/cris/sbrk.c
  56. 0 3
      libc/sysdeps/linux/frv/__init_brk.c
  57. 0 1
      libc/sysdeps/linux/frv/brk.c
  58. 0 1
      libc/sysdeps/linux/frv/sbrk.c
  59. 0 3
      libc/sysdeps/linux/h8300/brk.c
  60. 0 3
      libc/sysdeps/linux/hppa/brk.c
  61. 0 3
      libc/sysdeps/linux/i386/brk.c
  62. 1 2
      libc/sysdeps/linux/ia64/brk.S
  63. 0 3
      libc/sysdeps/linux/m68k/brk.c
  64. 0 3
      libc/sysdeps/linux/mips/brk.c
  65. 0 3
      libc/sysdeps/linux/nios/brk.c
  66. 0 4
      libc/sysdeps/linux/nios2/brk.c
  67. 3 4
      libc/sysdeps/linux/powerpc/brk.S
  68. 0 3
      libc/sysdeps/linux/sh/__init_brk.c
  69. 0 1
      libc/sysdeps/linux/sh/brk.c
  70. 0 1
      libc/sysdeps/linux/sh/sbrk.c
  71. 0 3
      libc/sysdeps/linux/sh64/__init_brk.c
  72. 0 1
      libc/sysdeps/linux/sh64/brk.c
  73. 0 1
      libc/sysdeps/linux/sh64/sbrk.c
  74. 0 3
      libc/sysdeps/linux/sparc/brk.c
  75. 0 3
      libc/sysdeps/linux/vax/brk.c
  76. 0 3
      libc/sysdeps/linux/x86_64/brk.c
  77. 0 1
      libc/unistd/exec.c
  78. 0 1
      libc/unistd/getopt.c
  79. 0 2
      libc/unistd/getpass.c
  80. 0 1
      libm/k_standard.c
  81. 0 2
      libm/s_lib_version.c

+ 0 - 1
libc/inet/herror.c

@@ -25,7 +25,6 @@
 
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(__h_errno_location)
 libc_hidden_proto(__h_errno_location)
-libc_hidden_proto(stderr)
 
 
 static const char *error_msg = "Resolver error";
 static const char *error_msg = "Resolver error";
 static const char *const h_errlist[] = {
 static const char *const h_errlist[] = {

+ 0 - 2
libc/inet/resolv.c

@@ -237,7 +237,6 @@ extern char * __searchdomain[MAX_SEARCH] attribute_hidden;
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 # include <pthread.h>
 extern pthread_mutex_t __resolv_lock;
 extern pthread_mutex_t __resolv_lock;
-libc_hidden_proto(__resolv_lock)
 #endif
 #endif
 #define BIGLOCK	__pthread_mutex_lock(&__resolv_lock)
 #define BIGLOCK	__pthread_mutex_lock(&__resolv_lock)
 #define BIGUNLOCK	__pthread_mutex_unlock(&__resolv_lock)
 #define BIGUNLOCK	__pthread_mutex_unlock(&__resolv_lock)
@@ -1022,7 +1021,6 @@ char * __searchdomain[MAX_SEARCH];
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 # include <pthread.h>
 pthread_mutex_t __resolv_lock = PTHREAD_MUTEX_INITIALIZER;
 pthread_mutex_t __resolv_lock = PTHREAD_MUTEX_INITIALIZER;
-libc_hidden_data_def(__resolv_lock)
 #endif
 #endif
 
 
 /*
 /*

+ 0 - 1
libc/inet/rpc/auth_unix.c

@@ -69,7 +69,6 @@ libc_hidden_proto(gettimeofday)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(perror)
 libc_hidden_proto(perror)
 libc_hidden_proto(abort)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 #ifdef USE_IN_LIBIO
 #ifdef USE_IN_LIBIO
 libc_hidden_proto(fwprintf)
 libc_hidden_proto(fwprintf)
 #endif
 #endif

+ 0 - 1
libc/inet/rpc/clnt_tcp.c

@@ -85,7 +85,6 @@ libc_hidden_proto(bindresvport)
 libc_hidden_proto(poll)
 libc_hidden_proto(poll)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(__rpc_thread_createerr)
 libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
 #ifdef USE_IN_LIBIO
 #ifdef USE_IN_LIBIO
 libc_hidden_proto(fwprintf)
 libc_hidden_proto(fwprintf)
 #endif
 #endif

+ 0 - 1
libc/inet/rpc/clnt_udp.c

@@ -84,7 +84,6 @@ libc_hidden_proto(recvmsg)
 libc_hidden_proto(poll)
 libc_hidden_proto(poll)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(__rpc_thread_createerr)
 libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
 
 
 extern u_long _create_xid (void) attribute_hidden;
 extern u_long _create_xid (void) attribute_hidden;
 
 

+ 0 - 1
libc/inet/rpc/clnt_unix.c

@@ -87,7 +87,6 @@ libc_hidden_proto(sendmsg)
 libc_hidden_proto(poll)
 libc_hidden_proto(poll)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(__rpc_thread_createerr)
 libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
 
 
 extern u_long _create_xid (void) attribute_hidden;
 extern u_long _create_xid (void) attribute_hidden;
 
 

+ 0 - 1
libc/inet/rpc/rcmd.c

@@ -132,7 +132,6 @@ libc_hidden_proto(fopen)
 libc_hidden_proto(fclose)
 libc_hidden_proto(fclose)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(__h_errno_location)
 libc_hidden_proto(__h_errno_location)
-libc_hidden_proto(stderr)
 #ifdef __UCLIBC_HAS_XLOCALE__
 #ifdef __UCLIBC_HAS_XLOCALE__
 libc_hidden_proto(__ctype_b_loc)
 libc_hidden_proto(__ctype_b_loc)
 libc_hidden_proto(__ctype_tolower_loc)
 libc_hidden_proto(__ctype_tolower_loc)

+ 0 - 1
libc/inet/rpc/rpc_private.h

@@ -5,7 +5,6 @@
 extern u_long _create_xid (void) attribute_hidden;
 extern u_long _create_xid (void) attribute_hidden;
 
 
 libc_hidden_proto(__rpc_thread_createerr)
 libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
 
 
 /*
 /*
  * Multi-threaded support
  * Multi-threaded support

+ 0 - 1
libc/inet/rpc/svc_tcp.c

@@ -83,7 +83,6 @@ libc_hidden_proto(listen)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fclose)
 libc_hidden_proto(fclose)
 libc_hidden_proto(abort)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 
 
 /*
 /*
  * Ops vector for TCP/IP based rpc service handle
  * Ops vector for TCP/IP based rpc service handle

+ 0 - 1
libc/inet/rpc/svc_udp.c

@@ -81,7 +81,6 @@ libc_hidden_proto(recvmsg)
 libc_hidden_proto(sendmsg)
 libc_hidden_proto(sendmsg)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
 
 
 #define rpc_buffer(xprt) ((xprt)->xp_p1)
 #define rpc_buffer(xprt) ((xprt)->xp_p1)
 #ifndef MAX
 #ifndef MAX

+ 0 - 1
libc/inet/rpc/svc_unix.c

@@ -82,7 +82,6 @@ libc_hidden_proto(accept)
 libc_hidden_proto(listen)
 libc_hidden_proto(listen)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(abort)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 
 
 /*
 /*
  * Ops vector for AF_UNIX based rpc service handle
  * Ops vector for AF_UNIX based rpc service handle

+ 0 - 1
libc/inet/rpc/xdr.c

@@ -58,7 +58,6 @@ libc_hidden_proto(fwprintf)
 
 
 libc_hidden_proto(strlen)
 libc_hidden_proto(strlen)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
-libc_hidden_proto(stderr)
 
 
 /*
 /*
  * constants specific to the xdr "protocol"
  * constants specific to the xdr "protocol"

+ 0 - 1
libc/inet/rpc/xdr_array.c

@@ -57,7 +57,6 @@ libc_hidden_proto(fwprintf)
 libc_hidden_proto(memset)
 libc_hidden_proto(memset)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(xdr_u_int)
 libc_hidden_proto(xdr_u_int)
-libc_hidden_proto(stderr)
 
 
 #define LASTUNSIGNED	((u_int)0-1)
 #define LASTUNSIGNED	((u_int)0-1)
 
 

+ 0 - 1
libc/inet/rpc/xdr_rec.c

@@ -63,7 +63,6 @@ libc_hidden_proto(fwprintf)
 libc_hidden_proto(memcpy)
 libc_hidden_proto(memcpy)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
 libc_hidden_proto(lseek)
 libc_hidden_proto(lseek)
-libc_hidden_proto(stderr)
 
 
 static bool_t xdrrec_getlong (XDR *, long *);
 static bool_t xdrrec_getlong (XDR *, long *);
 static bool_t xdrrec_putlong (XDR *, const long *);
 static bool_t xdrrec_putlong (XDR *, const long *);

+ 0 - 1
libc/inet/rpc/xdr_reference.c

@@ -58,7 +58,6 @@ libc_hidden_proto(fwprintf)
 libc_hidden_proto(memset)
 libc_hidden_proto(memset)
 libc_hidden_proto(xdr_bool)
 libc_hidden_proto(xdr_bool)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fputs)
-libc_hidden_proto(stderr)
 
 
 #define LASTUNSIGNED	((u_int)0-1)
 #define LASTUNSIGNED	((u_int)0-1)
 
 

+ 0 - 1
libc/misc/assert/__assert.c

@@ -35,7 +35,6 @@
 
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(abort)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 
 
 /* Get the prototype from assert.h as a double-check. */
 /* Get the prototype from assert.h as a double-check. */
 #undef NDEBUG
 #undef NDEBUG

+ 0 - 1
libc/misc/error/err.c

@@ -29,7 +29,6 @@ libc_hidden_proto(vfprintf)
 libc_hidden_proto(__xpg_strerror_r)
 libc_hidden_proto(__xpg_strerror_r)
 libc_hidden_proto(exit)
 libc_hidden_proto(exit)
 libc_hidden_proto(vfprintf)
 libc_hidden_proto(vfprintf)
-libc_hidden_proto(stderr)
 
 
 static void vwarn_work(const char *format, va_list args, int showerr)
 static void vwarn_work(const char *format, va_list args, int showerr)
 {
 {

+ 0 - 2
libc/misc/error/error.c

@@ -35,8 +35,6 @@ libc_hidden_proto(vfprintf)
 libc_hidden_proto(fflush)
 libc_hidden_proto(fflush)
 libc_hidden_proto(fputc)
 libc_hidden_proto(fputc)
 libc_hidden_proto(__fputc_unlocked)
 libc_hidden_proto(__fputc_unlocked)
-libc_hidden_proto(stdout)
-libc_hidden_proto(stderr)
 
 
 /* This variable is incremented each time `error' is called.  */
 /* This variable is incremented each time `error' is called.  */
 unsigned int error_message_count = 0;
 unsigned int error_message_count = 0;

+ 0 - 5
libc/misc/gnu/obstack.c

@@ -89,7 +89,6 @@ union fooround {long x; double d;};
    abort gracefully or use longjump - but shouldn't return.  This
    abort gracefully or use longjump - but shouldn't return.  This
    variable by default points to the internal function
    variable by default points to the internal function
    `print_and_abort'.  */
    `print_and_abort'.  */
-libc_hidden_proto(obstack_alloc_failed_handler)
 # if defined __STDC__ && __STDC__
 # if defined __STDC__ && __STDC__
 static void print_and_abort (void);
 static void print_and_abort (void);
 void (*obstack_alloc_failed_handler) (void) = print_and_abort;
 void (*obstack_alloc_failed_handler) (void) = print_and_abort;
@@ -97,7 +96,6 @@ void (*obstack_alloc_failed_handler) (void) = print_and_abort;
 static void print_and_abort ();
 static void print_and_abort ();
 void (*obstack_alloc_failed_handler) () = print_and_abort;
 void (*obstack_alloc_failed_handler) () = print_and_abort;
 # endif
 # endif
-libc_hidden_data_def(obstack_alloc_failed_handler)
 
 
 
 
 /* Exit value used when `print_and_abort' is used.  */
 /* Exit value used when `print_and_abort' is used.  */
@@ -111,14 +109,11 @@ libc_hidden_data_def(obstack_alloc_failed_handler)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(abort)
 libc_hidden_proto(abort)
 libc_hidden_proto(exit)
 libc_hidden_proto(exit)
-libc_hidden_proto(stderr)
 #ifdef __UCLIBC_HAS_WCHAR__
 #ifdef __UCLIBC_HAS_WCHAR__
 libc_hidden_proto(fwprintf)
 libc_hidden_proto(fwprintf)
 #endif
 #endif
 
 
-libc_hidden_proto(obstack_exit_failure)
 int obstack_exit_failure = EXIT_FAILURE;
 int obstack_exit_failure = EXIT_FAILURE;
-libc_hidden_data_def(obstack_exit_failure)
 
 
 /* The non-GNU-C macros copy the obstack into this global variable
 /* The non-GNU-C macros copy the obstack into this global variable
    to avoid multiple evaluation.  */
    to avoid multiple evaluation.  */

+ 3 - 11
libc/misc/internals/__uClibc_main.c

@@ -113,23 +113,15 @@ strong_alias (__progname_full, program_invocation_name)
 #endif
 #endif
 
 
 /*
 /*
- * Declare the __environ global variable and create a weak alias environ.
- * Note: Apparently we must initialize __environ to ensure that the weak
+ * Declare the __environ global variable and create a strong alias environ.
+ * Note: Apparently we must initialize __environ to ensure that the strong
  * environ symbol is also included.
  * environ symbol is also included.
  */
  */
-libc_hidden_proto(__environ)
 char **__environ = 0;
 char **__environ = 0;
-libc_hidden_data_def(__environ)
-#ifdef __USE_GNU
-/* psm: arm segfaults with strong_alias, although defined */
-weak_alias(__environ,environ)
-#endif
+strong_alias(__environ,environ)
 
 
 /* TODO: don't export __pagesize; we cant now because libpthread uses it */
 /* TODO: don't export __pagesize; we cant now because libpthread uses it */
-extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
 size_t __pagesize = 0;
 size_t __pagesize = 0;
-libc_hidden_data_def(__pagesize)
 
 
 #ifndef O_NOFOLLOW
 #ifndef O_NOFOLLOW
 # define O_NOFOLLOW	0
 # define O_NOFOLLOW	0

+ 0 - 11
libc/misc/locale/locale.c

@@ -148,10 +148,6 @@ extern void _locale_init_l(__locale_t base) attribute_hidden;
 #include <langinfo.h>
 #include <langinfo.h>
 #include <nl_types.h>
 #include <nl_types.h>
 
 
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
 /**********************************************************************/
 /**********************************************************************/
 #ifdef L_setlocale
 #ifdef L_setlocale
 
 
@@ -377,12 +373,9 @@ libc_hidden_proto(__ctype_toupper)
 __uclibc_locale_t __global_locale_data;
 __uclibc_locale_t __global_locale_data;
 
 
 __locale_t __global_locale = &__global_locale_data;
 __locale_t __global_locale = &__global_locale_data;
-libc_hidden_data_def(__global_locale)
 
 
 #ifdef __UCLIBC_HAS_XLOCALE__
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__curlocale_var)
 __locale_t __curlocale_var = &__global_locale_data;
 __locale_t __curlocale_var = &__global_locale_data;
-libc_hidden_data_def(__curlocale_var)
 #endif
 #endif
 
 
 /*----------------------------------------------------------------------*/
 /*----------------------------------------------------------------------*/
@@ -1386,8 +1379,6 @@ void freelocale(__locale_t dataset)
 /**********************************************************************/
 /**********************************************************************/
 #ifdef L_uselocale
 #ifdef L_uselocale
 
 
-libc_hidden_proto(__curlocale_var)
-
 libc_hidden_proto(uselocale)
 libc_hidden_proto(uselocale)
 __locale_t uselocale(__locale_t dataset)
 __locale_t uselocale(__locale_t dataset)
 {
 {
@@ -1420,8 +1411,6 @@ libc_hidden_def(uselocale)
 
 
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 
 
-libc_hidden_proto(__curlocale_var)
-
 __locale_t weak_const_function __curlocale(void)
 __locale_t weak_const_function __curlocale(void)
 {
 {
     return __curlocale_var; /* This is overriden by the thread version. */
     return __curlocale_var; /* This is overriden by the thread version. */

+ 0 - 6
libc/misc/time/time.c

@@ -1715,15 +1715,9 @@ static const char vals[] = {
 #define DEFAULT_RULES (vals + 22)
 #define DEFAULT_RULES (vals + 22)
 
 
 /* Initialize to UTC. */
 /* Initialize to UTC. */
-libc_hidden_proto(daylight)
 int daylight = 0;
 int daylight = 0;
-libc_hidden_data_def(daylight)
-libc_hidden_proto(timezone)
 long timezone = 0;
 long timezone = 0;
-libc_hidden_data_def(timezone)
-libc_hidden_proto(tzname)
 char *tzname[2] = { (char *) UTC, (char *) (UTC-1) };
 char *tzname[2] = { (char *) UTC, (char *) (UTC-1) };
-libc_hidden_data_def(tzname)
 
 
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 attribute_hidden pthread_mutex_t _time_tzlock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
 attribute_hidden pthread_mutex_t _time_tzlock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;

+ 0 - 3
libc/misc/wchar/wchar.c

@@ -111,9 +111,6 @@
 #include <wchar.h>
 #include <wchar.h>
 #include <bits/uClibc_uwchar.h>
 #include <bits/uClibc_uwchar.h>
 
 
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 /**********************************************************************/
 /**********************************************************************/
 #ifdef __UCLIBC_HAS_LOCALE__
 #ifdef __UCLIBC_HAS_LOCALE__
 #ifdef __UCLIBC_MJN3_ONLY__
 #ifdef __UCLIBC_MJN3_ONLY__

+ 0 - 3
libc/misc/wctype/_wctype.c

@@ -60,9 +60,6 @@ libc_hidden_proto(iswctype_l)
 #else
 #else
 libc_hidden_proto(__ctype_b)
 libc_hidden_proto(__ctype_b)
 #endif /* __UCLIBC_HAS_XLOCALE__ */
 #endif /* __UCLIBC_HAS_XLOCALE__ */
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 
 
 /* We know wide char support is enabled.  We wouldn't be here otherwise. */
 /* We know wide char support is enabled.  We wouldn't be here otherwise. */
 
 

+ 0 - 2
libc/misc/wordexp/wordexp.c

@@ -44,7 +44,6 @@ libc_hidden_proto(strlen)
 libc_hidden_proto(strndup)
 libc_hidden_proto(strndup)
 libc_hidden_proto(strspn)
 libc_hidden_proto(strspn)
 libc_hidden_proto(strcspn)
 libc_hidden_proto(strcspn)
-libc_hidden_proto(__environ)
 libc_hidden_proto(setenv)
 libc_hidden_proto(setenv)
 libc_hidden_proto(unsetenv)
 libc_hidden_proto(unsetenv)
 libc_hidden_proto(waitpid)
 libc_hidden_proto(waitpid)
@@ -66,7 +65,6 @@ libc_hidden_proto(getpid)
 libc_hidden_proto(sprintf)
 libc_hidden_proto(sprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(abort)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 libc_hidden_proto(glob)
 libc_hidden_proto(glob)
 libc_hidden_proto(globfree)
 libc_hidden_proto(globfree)
 libc_hidden_proto(wordfree)
 libc_hidden_proto(wordfree)

+ 0 - 3
libc/stdio/__fsetlocking.c

@@ -9,9 +9,6 @@
 #include <stdio_ext.h>
 #include <stdio_ext.h>
 
 
 libc_hidden_proto(__fsetlocking)
 libc_hidden_proto(__fsetlocking)
-#ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
-#endif
 
 
 /* Not threadsafe. */
 /* Not threadsafe. */
 
 

+ 0 - 4
libc/stdio/_fopen.c

@@ -11,10 +11,6 @@ libc_hidden_proto(isatty)
 libc_hidden_proto(open)
 libc_hidden_proto(open)
 libc_hidden_proto(fcntl)
 libc_hidden_proto(fcntl)
 
 
-#ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
-#endif
-
 /*
 /*
  * Cases:
  * Cases:
  *  fopen64  : filename != NULL, stream == NULL, filedes == -2
  *  fopen64  : filename != NULL, stream == NULL, filedes == -2

+ 0 - 3
libc/stdio/_fpmaxtostr.c

@@ -12,9 +12,6 @@
 #include <bits/uClibc_fpmax.h>
 #include <bits/uClibc_fpmax.h>
 
 
 libc_hidden_proto(memset)
 libc_hidden_proto(memset)
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 
 
 typedef size_t (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len,
 typedef size_t (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len,
 								intptr_t buf);
 								intptr_t buf);

+ 0 - 3
libc/stdio/_scanf.c

@@ -101,9 +101,6 @@ libc_hidden_proto(fgetwc_unlocked)
 #ifdef __UCLIBC_HAS_XLOCALE__
 #ifdef __UCLIBC_HAS_XLOCALE__
 libc_hidden_proto(__ctype_b_loc)
 libc_hidden_proto(__ctype_b_loc)
 #else
 #else
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 libc_hidden_proto(__ctype_b)
 libc_hidden_proto(__ctype_b)
 #endif
 #endif
 
 

+ 0 - 11
libc/stdio/_stdio.c

@@ -125,19 +125,12 @@ static FILE _stdio_streams[] = {
 							 0 )
 							 0 )
 };
 };
 
 
-/* psm: moved to _stdio.h: libc_hidden_proto(stdin/stdout) */
 FILE *stdin  = _stdio_streams;
 FILE *stdin  = _stdio_streams;
-libc_hidden_data_def(stdin)
 FILE *stdout = _stdio_streams + 1;
 FILE *stdout = _stdio_streams + 1;
-libc_hidden_data_def(stdout)
-libc_hidden_proto(stderr)
 FILE *stderr = _stdio_streams + 2;
 FILE *stderr = _stdio_streams + 2;
-libc_hidden_data_def(stderr)
 
 
 #ifdef __STDIO_GETC_MACRO
 #ifdef __STDIO_GETC_MACRO
-libc_hidden_proto(__stdin)
 FILE *__stdin = _stdio_streams;		 /* For getchar() macro. */
 FILE *__stdin = _stdio_streams;		 /* For getchar() macro. */
-libc_hidden_data_def(__stdin)
 #endif
 #endif
 #ifdef __STDIO_PUTC_MACRO
 #ifdef __STDIO_PUTC_MACRO
 FILE *__stdout = _stdio_streams + 1; /* For putchar() macro. */
 FILE *__stdout = _stdio_streams + 1; /* For putchar() macro. */
@@ -159,11 +152,9 @@ FILE *__stdout = _stdio_streams + 1; /* For putchar() macro. */
  */
  */
 
 
 FILE *_stdio_openlist = _stdio_streams;
 FILE *_stdio_openlist = _stdio_streams;
-libc_hidden_data_def(_stdio_openlist)
 
 
 # ifdef __UCLIBC_HAS_THREADS__
 # ifdef __UCLIBC_HAS_THREADS__
 pthread_mutex_t _stdio_openlist_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
 pthread_mutex_t _stdio_openlist_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(_stdio_openlist_lock)
 int _stdio_openlist_delflag = 0;
 int _stdio_openlist_delflag = 0;
 # endif
 # endif
 
 
@@ -172,9 +163,7 @@ int _stdio_openlist_delflag = 0;
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 
 
 /* 2 if threading not initialized and 0 otherwise; */
 /* 2 if threading not initialized and 0 otherwise; */
-libc_hidden_proto(_stdio_user_locking)
 int _stdio_user_locking = 2;
 int _stdio_user_locking = 2;
-libc_hidden_data_def(_stdio_user_locking)
 
 
 void attribute_hidden __stdio_init_mutex(pthread_mutex_t *m)
 void attribute_hidden __stdio_init_mutex(pthread_mutex_t *m)
 {
 {

+ 0 - 6
libc/stdio/_stdio.h

@@ -20,14 +20,8 @@
 #include <wchar.h>
 #include <wchar.h>
 #endif
 #endif
 
 
-libc_hidden_proto(stdin)
-libc_hidden_proto(stdout)
-
-libc_hidden_proto(_stdio_openlist)
-
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 #include <pthread.h>
 #include <pthread.h>
-libc_hidden_proto(_stdio_openlist_lock)
 
 
 #define __STDIO_THREADLOCK_OPENLIST \
 #define __STDIO_THREADLOCK_OPENLIST \
 	__pthread_mutex_lock(&_stdio_openlist_lock)
 	__pthread_mutex_lock(&_stdio_openlist_lock)

+ 0 - 3
libc/stdio/_uintmaxtostr.c

@@ -12,9 +12,6 @@
 #include <bits/uClibc_uintmaxtostr.h>
 #include <bits/uClibc_uintmaxtostr.h>
 
 
 libc_hidden_proto(memcpy)
 libc_hidden_proto(memcpy)
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 
 
 /* Avoid using long long / and % operations to cut down dependencies on
 /* Avoid using long long / and % operations to cut down dependencies on
  * libgcc.a.  Definitely helps on i386 at least. */
  * libgcc.a.  Definitely helps on i386 at least. */

+ 0 - 8
libc/stdio/_vfprintf.c

@@ -512,10 +512,6 @@ size_t parse_printf_format(register const char *template,
 /**********************************************************************/
 /**********************************************************************/
 #ifdef L__ppfs_init
 #ifdef L__ppfs_init
 
 
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
 int attribute_hidden _ppfs_init(register ppfs_t *ppfs, const char *fmt0)
 int attribute_hidden _ppfs_init(register ppfs_t *ppfs, const char *fmt0)
 {
 {
 	int r;
 	int r;
@@ -1254,10 +1250,6 @@ static size_t _fp_out_narrow(FILE *fp, intptr_t type, intptr_t len, intptr_t buf
 #define _outnwcs(stream, wstring, len)	_wstdio_fwrite(wstring, len, stream)
 #define _outnwcs(stream, wstring, len)	_wstdio_fwrite(wstring, len, stream)
 #define FP_OUT _fp_out_wide
 #define FP_OUT _fp_out_wide
 
 
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
 static size_t _outnstr(FILE *stream, const char *s, size_t wclen)
 static size_t _outnstr(FILE *stream, const char *s, size_t wclen)
 {
 {
 	/* NOTE!!! len here is the number of wchars we want to generate!!! */
 	/* NOTE!!! len here is the number of wchars we want to generate!!! */

+ 0 - 1
libc/stdio/fflush.c

@@ -16,7 +16,6 @@ libc_hidden_proto(fflush_unlocked)
 #endif /* __UCLIBC_MJN3_ONLY__ */
 #endif /* __UCLIBC_MJN3_ONLY__ */
 
 
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
 /* Even if the stream is set to user-locking, we still need to lock
 /* Even if the stream is set to user-locking, we still need to lock
  * when all (lbf) writing streams are flushed. */
  * when all (lbf) writing streams are flushed. */
 #define MY_STDIO_THREADLOCK(STREAM) \
 #define MY_STDIO_THREADLOCK(STREAM) \

+ 1 - 3
libc/stdio/gets.c

@@ -13,9 +13,7 @@ link_warning(gets, "the 'gets' function is dangerous and should not be used.")
 
 
 libc_hidden_proto(getchar_unlocked)
 libc_hidden_proto(getchar_unlocked)
 libc_hidden_proto(__fgetc_unlocked)
 libc_hidden_proto(__fgetc_unlocked)
-#ifdef __STDIO_GETC_MACRO
-libc_hidden_proto(__stdin)
-#else
+#ifndef __STDIO_GETC_MACRO
 #define __stdin stdin
 #define __stdin stdin
 #endif
 #endif
 
 

+ 0 - 1
libc/stdio/perror.c

@@ -9,7 +9,6 @@
 
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(__glibc_strerror_r)
 libc_hidden_proto(__glibc_strerror_r)
-libc_hidden_proto(stderr)
 
 
 #ifdef __UCLIBC_MJN3_ONLY__
 #ifdef __UCLIBC_MJN3_ONLY__
 #warning CONSIDER: Increase buffer size for error message (non-%m case)?
 #warning CONSIDER: Increase buffer size for error message (non-%m case)?

+ 0 - 2
libc/stdlib/_atexit.c

@@ -49,7 +49,6 @@ libc_hidden_proto(_exit)
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 # include <pthread.h>
 extern pthread_mutex_t mylock;
 extern pthread_mutex_t mylock;
-libc_hidden_proto(mylock)
 #endif
 #endif
 #define LOCK	__pthread_mutex_lock(&mylock)
 #define LOCK	__pthread_mutex_lock(&mylock)
 #define UNLOCK	__pthread_mutex_unlock(&mylock)
 #define UNLOCK	__pthread_mutex_unlock(&mylock)
@@ -315,7 +314,6 @@ extern void weak_function _stdio_term(void) attribute_hidden;
 attribute_hidden void (*__exit_cleanup) (int) = 0;
 attribute_hidden void (*__exit_cleanup) (int) = 0;
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
 pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(mylock)
 #endif
 #endif
 
 
 extern void __uClibc_fini(void);
 extern void __uClibc_fini(void);

+ 0 - 3
libc/stdlib/_strtod.c

@@ -178,9 +178,6 @@ extern void __fp_range_check(__fpmax_t y, __fpmax_t x) attribute_hidden;
 #ifdef __UCLIBC_HAS_XLOCALE__
 #ifdef __UCLIBC_HAS_XLOCALE__
 libc_hidden_proto(__ctype_b_loc)
 libc_hidden_proto(__ctype_b_loc)
 #else
 #else
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 libc_hidden_proto(__ctype_b)
 libc_hidden_proto(__ctype_b)
 libc_hidden_proto(__ctype_tolower)
 libc_hidden_proto(__ctype_tolower)
 #endif
 #endif

+ 0 - 1
libc/stdlib/getenv.c

@@ -11,7 +11,6 @@
 libc_hidden_proto(getenv)
 libc_hidden_proto(getenv)
 libc_hidden_proto(memcmp)
 libc_hidden_proto(memcmp)
 libc_hidden_proto(strlen)
 libc_hidden_proto(strlen)
-libc_hidden_proto(__environ)
 
 
 /* IEEE Std 1003.1-2001 says getenv need not be thread safe, so 
 /* IEEE Std 1003.1-2001 says getenv need not be thread safe, so 
  * don't bother locking access to __environ */
  * don't bother locking access to __environ */

+ 0 - 1
libc/stdlib/malloc-standard/mallinfo.c

@@ -17,7 +17,6 @@
 #include "malloc.h"
 #include "malloc.h"
 
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
 
 
 /* ------------------------------ mallinfo ------------------------------ */
 /* ------------------------------ mallinfo ------------------------------ */
 libc_hidden_proto(mallinfo)
 libc_hidden_proto(mallinfo)

+ 0 - 1
libc/stdlib/malloc-standard/malloc.c

@@ -19,7 +19,6 @@
 
 
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 pthread_mutex_t __malloc_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
 pthread_mutex_t __malloc_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(__malloc_lock)
 #endif
 #endif
 
 
 /*
 /*

+ 0 - 1
libc/stdlib/malloc-standard/malloc.h

@@ -31,7 +31,6 @@ libc_hidden_proto(abort)
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 # include <pthread.h>
 extern pthread_mutex_t __malloc_lock;
 extern pthread_mutex_t __malloc_lock;
-libc_hidden_proto(__malloc_lock)
 #endif
 #endif
 #define LOCK	__pthread_mutex_lock(&__malloc_lock)
 #define LOCK	__pthread_mutex_lock(&__malloc_lock)
 #define UNLOCK	__pthread_mutex_unlock(&__malloc_lock)
 #define UNLOCK	__pthread_mutex_unlock(&__malloc_lock)

+ 0 - 1
libc/stdlib/malloc/malloc.h

@@ -16,7 +16,6 @@
 
 
 /* The system pagesize... */
 /* The system pagesize... */
 extern size_t __pagesize;
 extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
 #define MALLOC_PAGE_SIZE	__pagesize
 #define MALLOC_PAGE_SIZE	__pagesize
 
 
 /* The minimum size of block we request from the the system to extend the
 /* The minimum size of block we request from the the system to extend the

+ 0 - 1
libc/stdlib/setenv.c

@@ -31,7 +31,6 @@ libc_hidden_proto(strlen)
 libc_hidden_proto(strncmp)
 libc_hidden_proto(strncmp)
 libc_hidden_proto(strndup)
 libc_hidden_proto(strndup)
 libc_hidden_proto(unsetenv)
 libc_hidden_proto(unsetenv)
-libc_hidden_proto(__environ)
 
 
 #ifdef __UCLIBC_HAS_THREADS__
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 # include <pthread.h>

+ 0 - 3
libc/stdlib/stdlib.c

@@ -102,9 +102,6 @@
 #ifdef __UCLIBC_HAS_XLOCALE__
 #ifdef __UCLIBC_HAS_XLOCALE__
 #include <xlocale.h>
 #include <xlocale.h>
 #endif /* __UCLIBC_HAS_XLOCALE__ */
 #endif /* __UCLIBC_HAS_XLOCALE__ */
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 
 
 /* TODO: clean up the following... */
 /* TODO: clean up the following... */
 
 

+ 0 - 2
libc/string/_collate.c

@@ -57,8 +57,6 @@ libc_hidden_proto(wcscmp)
 
 
 #endif /* defined(L_strxfrm) || defined(L_strxfrm_l) */
 #endif /* defined(L_strxfrm) || defined(L_strxfrm_l) */
 
 
-libc_hidden_proto(__global_locale)
-
 #if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
 #if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
 
 
 libc_hidden_proto(wcscoll_l)
 libc_hidden_proto(wcscoll_l)

+ 0 - 1
libc/string/psignal.c

@@ -12,7 +12,6 @@
 
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(strsignal)
 libc_hidden_proto(strsignal)
-libc_hidden_proto(stderr)
 
 
 /* TODO: make this threadsafe with a reentrant version of strsignal? */
 /* TODO: make this threadsafe with a reentrant version of strsignal? */
 
 

+ 1 - 1
libc/sysdeps/linux/alpha/brk.S

@@ -68,7 +68,7 @@ brk:
 
 
 	/* Update __curbrk and return cleanly.  */
 	/* Update __curbrk and return cleanly.  */
 	mov	$31, $0
 	mov	$31, $0
-$ok:	stq	$16, HIDDEN_JUMPTARGET(__curbrk)
+$ok:	stq	$16, __curbrk
 	addq	$30, 8, $30
 	addq	$30, 8, $30
 	ret
 	ret
 
 

+ 0 - 3
libc/sysdeps/linux/arm/brk.c

@@ -24,10 +24,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 0 - 3
libc/sysdeps/linux/bfin/brk.c

@@ -11,10 +11,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 0 - 1
libc/sysdeps/linux/common/getpagesize.c

@@ -21,7 +21,6 @@
 #include <sys/param.h>
 #include <sys/param.h>
 
 
 extern size_t __pagesize;
 extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
 
 
 /* Return the system page size.  */
 /* Return the system page size.  */
 /* couldn't make __getpagesize hidden, because shm.h uses it in a macro */
 /* couldn't make __getpagesize hidden, because shm.h uses it in a macro */

+ 0 - 1
libc/sysdeps/linux/common/sbrk.c

@@ -13,7 +13,6 @@ libc_hidden_proto(brk)
 
 
 /* Defined in brk.c.  */
 /* Defined in brk.c.  */
 extern void *__curbrk;
 extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 
 
 /* Extend the process's data space by INCREMENT.
 /* Extend the process's data space by INCREMENT.
    If INCREMENT is negative, shrink data space by - INCREMENT.
    If INCREMENT is negative, shrink data space by - INCREMENT.

+ 0 - 3
libc/sysdeps/linux/cris/__init_brk.c

@@ -5,10 +5,7 @@
 #include <errno.h>
 #include <errno.h>
 #include "sysdep.h"
 #include "sysdep.h"
 
 
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 1
libc/sysdeps/linux/cris/brk.c

@@ -12,7 +12,6 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 extern void * __curbrk;
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 1
libc/sysdeps/linux/cris/sbrk.c

@@ -13,7 +13,6 @@
 libc_hidden_proto(sbrk)
 libc_hidden_proto(sbrk)
 
 
 extern void * __curbrk;
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 3
libc/sysdeps/linux/frv/__init_brk.c

@@ -4,10 +4,7 @@
 #include <unistd.h>
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <sys/syscall.h>
 
 
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 #define __NR__brk __NR_brk
 #define __NR__brk __NR_brk
 attribute_hidden _syscall1(void *, _brk, void *, ptr);
 attribute_hidden _syscall1(void *, _brk, void *, ptr);

+ 0 - 1
libc/sysdeps/linux/frv/brk.c

@@ -12,7 +12,6 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 extern void * __curbrk;
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 1
libc/sysdeps/linux/frv/sbrk.c

@@ -7,7 +7,6 @@
 libc_hidden_proto(sbrk)
 libc_hidden_proto(sbrk)
 
 
 extern void * __curbrk;
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 3
libc/sysdeps/linux/h8300/brk.c

@@ -12,10 +12,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 0 - 3
libc/sysdeps/linux/hppa/brk.c

@@ -24,10 +24,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int
 int
 brk (void *addr)
 brk (void *addr)

+ 0 - 3
libc/sysdeps/linux/i386/brk.c

@@ -24,10 +24,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 1 - 2
libc/sysdeps/linux/ia64/brk.S

@@ -31,7 +31,6 @@
 	.align	8
 	.align	8
 __curbrk:
 __curbrk:
 	data8	0
 	data8	0
-libc_hidden_data_def(__curbrk)
 
 
 weak_alias (__curbrk, ___brk_addr)
 weak_alias (__curbrk, ___brk_addr)
 
 
@@ -39,7 +38,7 @@ LEAF(brk)
 	.regstk 1, 0, 0, 0
 	.regstk 1, 0, 0, 0
 	DO_CALL(__NR_brk)
 	DO_CALL(__NR_brk)
 	cmp.ltu	p6, p0 = ret0, in0
 	cmp.ltu	p6, p0 = ret0, in0
-	addl r9 = @ltoff(HIDDEN_JUMPTARGET(__curbrk)), gp
+	addl r9 = @ltoff(__curbrk), gp
 	;;
 	;;
 	ld8 r9 = [r9]
 	ld8 r9 = [r9]
 (p6) 	mov ret0 = ENOMEM
 (p6) 	mov ret0 = ENOMEM

+ 0 - 3
libc/sysdeps/linux/m68k/brk.c

@@ -12,10 +12,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 0 - 3
libc/sysdeps/linux/mips/brk.c

@@ -23,10 +23,7 @@
 
 
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 0 - 3
libc/sysdeps/linux/nios/brk.c

@@ -24,10 +24,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 0 - 4
libc/sysdeps/linux/nios2/brk.c

@@ -24,11 +24,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
-
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 3 - 4
libc/sysdeps/linux/powerpc/brk.S

@@ -35,7 +35,6 @@ __curbrk: .skip 4
 #else
 #else
 .comm __curbrk, 4,4
 .comm __curbrk, 4,4
 #endif
 #endif
-libc_hidden_data_def(__curbrk)
 
 
 	.text
 	.text
 	.globl	brk
 	.globl	brk
@@ -52,12 +51,12 @@ brk:
 	mflr    r4
 	mflr    r4
 	bl      _GLOBAL_OFFSET_TABLE_@local-4
 	bl      _GLOBAL_OFFSET_TABLE_@local-4
 	mflr    r5
 	mflr    r5
-	lwz     r5,HIDDEN_JUMPTARGET(__curbrk)@got(r5)
+	lwz     r5,__curbrk@got(r5)
 	mtlr    r4
 	mtlr    r4
 	stw     r3,0(r5)
 	stw     r3,0(r5)
 #else
 #else
-	lis     r4,HIDDEN_JUMPTARGET(__curbrk)@ha
-	stw     r3,HIDDEN_JUMPTARGET(__curbrk)@l(r4)
+	lis     r4,__curbrk@ha
+	stw     r3,__curbrk@l(r4)
 #endif
 #endif
 	cmplw   r6,r3
 	cmplw   r6,r3
 	addi    r1,r1,16
 	addi    r1,r1,16

+ 0 - 3
libc/sysdeps/linux/sh/__init_brk.c

@@ -4,10 +4,7 @@
 #include <unistd.h>
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <sys/syscall.h>
 
 
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 #define __NR__brk __NR_brk
 #define __NR__brk __NR_brk
 attribute_hidden _syscall1(void *, _brk, void *, ptr);
 attribute_hidden _syscall1(void *, _brk, void *, ptr);

+ 0 - 1
libc/sysdeps/linux/sh/brk.c

@@ -12,7 +12,6 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 extern void * __curbrk;
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 1
libc/sysdeps/linux/sh/sbrk.c

@@ -7,7 +7,6 @@
 libc_hidden_proto(sbrk)
 libc_hidden_proto(sbrk)
 
 
 extern void * __curbrk;
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 3
libc/sysdeps/linux/sh64/__init_brk.c

@@ -4,10 +4,7 @@
 #include <unistd.h>
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <sys/syscall.h>
 
 
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 #define __NR__brk __NR_brk
 #define __NR__brk __NR_brk
 attribute_hidden _syscall1(void *, _brk, void *, ptr);
 attribute_hidden _syscall1(void *, _brk, void *, ptr);

+ 0 - 1
libc/sysdeps/linux/sh64/brk.c

@@ -12,7 +12,6 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 extern void * __curbrk;
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 1
libc/sysdeps/linux/sh64/sbrk.c

@@ -7,7 +7,6 @@
 libc_hidden_proto(sbrk)
 libc_hidden_proto(sbrk)
 
 
 extern void * __curbrk;
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 
 extern int __init_brk (void);
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
 libc_hidden_proto(__init_brk)

+ 0 - 3
libc/sysdeps/linux/sparc/brk.c

@@ -24,10 +24,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 0 - 3
libc/sysdeps/linux/vax/brk.c

@@ -22,10 +22,7 @@
 #include <sys/syscall.h>
 #include <sys/syscall.h>
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = NULL;
 void *__curbrk = NULL;
-libc_hidden_data_def(__curbrk)
 
 
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 int
 int

+ 0 - 3
libc/sysdeps/linux/x86_64/brk.c

@@ -24,10 +24,7 @@
 libc_hidden_proto(brk)
 libc_hidden_proto(brk)
 
 
 /* This must be initialized data because commons can't have aliases.  */
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 
 int brk (void *addr)
 int brk (void *addr)
 {
 {

+ 0 - 1
libc/unistd/exec.c

@@ -50,7 +50,6 @@ libc_hidden_proto(execve)
 libc_hidden_proto(mmap)
 libc_hidden_proto(mmap)
 libc_hidden_proto(munmap)
 libc_hidden_proto(munmap)
 libc_hidden_proto(getenv)
 libc_hidden_proto(getenv)
-libc_hidden_proto(__environ)
 
 
 /**********************************************************************/
 /**********************************************************************/
 #if defined(__ARCH_USE_MMU__) || defined(__UCLIBC_UCLINUX_BROKEN_MUNMAP__)
 #if defined(__ARCH_USE_MMU__) || defined(__UCLIBC_UCLINUX_BROKEN_MUNMAP__)

+ 0 - 1
libc/unistd/getopt.c

@@ -127,7 +127,6 @@ libc_hidden_proto(strlen)
 libc_hidden_proto(strncmp)
 libc_hidden_proto(strncmp)
 libc_hidden_proto(getenv)
 libc_hidden_proto(getenv)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
 
 
 /* For communication from `getopt' to the caller.
 /* For communication from `getopt' to the caller.
    When `getopt' finds an option that takes an argument,
    When `getopt' finds an option that takes an argument,

+ 0 - 2
libc/unistd/getpass.c

@@ -35,8 +35,6 @@ libc_hidden_proto(fputs)
 libc_hidden_proto(fputc)
 libc_hidden_proto(fputc)
 libc_hidden_proto(putc)
 libc_hidden_proto(putc)
 libc_hidden_proto(__fputc_unlocked)
 libc_hidden_proto(__fputc_unlocked)
-libc_hidden_proto(stdin)
-libc_hidden_proto(stderr)
 
 
 /* It is desirable to use this bit on systems that have it.
 /* It is desirable to use this bit on systems that have it.
    The only bit of terminal state we want to twiddle is echoing, which is
    The only bit of terminal state we want to twiddle is echoing, which is

+ 0 - 1
libm/k_standard.c

@@ -21,7 +21,6 @@ static char rcsid[] = "$NetBSD: k_standard.c,v 1.6 1995/05/10 20:46:35 jtc Exp $
 libm_hidden_proto(copysign)
 libm_hidden_proto(copysign)
 libm_hidden_proto(matherr)
 libm_hidden_proto(matherr)
 libm_hidden_proto(rint)
 libm_hidden_proto(rint)
-libm_hidden_proto(_LIB_VERSION)
 
 
 #ifndef _USE_WRITE
 #ifndef _USE_WRITE
 #include <stdio.h>			/* fputs(), stderr */
 #include <stdio.h>			/* fputs(), stderr */

+ 0 - 2
libm/s_lib_version.c

@@ -24,7 +24,6 @@ static char rcsid[] = "$NetBSD: s_lib_version.c,v 1.6 1995/05/10 20:47:44 jtc Ex
 /*
 /*
  * define and initialize _LIB_VERSION
  * define and initialize _LIB_VERSION
  */
  */
-libm_hidden_proto(_LIB_VERSION)
 #ifdef _POSIX_MODE
 #ifdef _POSIX_MODE
 _LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
 _LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
 #else
 #else
@@ -38,4 +37,3 @@ _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
 #endif
 #endif
 #endif
 #endif
 #endif
 #endif
-libm_hidden_data_def(_LIB_VERSION)