diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-03-10 16:20:23 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-03-10 16:20:23 +0000 |
commit | 42c1ad48fa946f00d67d0b023f50e5d6d8fc293f (patch) | |
tree | f510bb36f58711b809103832fa826b0de13df593 /libc | |
parent | 7747ec45650949ca4712be8e2cbc0588c0922982 (diff) |
Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, most of global data relocations are back
Diffstat (limited to 'libc')
79 files changed, 9 insertions, 194 deletions
diff --git a/libc/inet/herror.c b/libc/inet/herror.c index 66626c0a8..063f6e93e 100644 --- a/libc/inet/herror.c +++ b/libc/inet/herror.c @@ -25,7 +25,6 @@ libc_hidden_proto(fprintf) libc_hidden_proto(__h_errno_location) -libc_hidden_proto(stderr) static const char *error_msg = "Resolver error"; static const char *const h_errlist[] = { diff --git a/libc/inet/resolv.c b/libc/inet/resolv.c index 9b9a42aa3..885413db8 100644 --- a/libc/inet/resolv.c +++ b/libc/inet/resolv.c @@ -237,7 +237,6 @@ extern char * __searchdomain[MAX_SEARCH] attribute_hidden; #ifdef __UCLIBC_HAS_THREADS__ # include <pthread.h> extern pthread_mutex_t __resolv_lock; -libc_hidden_proto(__resolv_lock) #endif #define BIGLOCK __pthread_mutex_lock(&__resolv_lock) #define BIGUNLOCK __pthread_mutex_unlock(&__resolv_lock) @@ -1022,7 +1021,6 @@ char * __searchdomain[MAX_SEARCH]; #ifdef __UCLIBC_HAS_THREADS__ # include <pthread.h> pthread_mutex_t __resolv_lock = PTHREAD_MUTEX_INITIALIZER; -libc_hidden_data_def(__resolv_lock) #endif /* diff --git a/libc/inet/rpc/auth_unix.c b/libc/inet/rpc/auth_unix.c index 7644ab276..80b60b56b 100644 --- a/libc/inet/rpc/auth_unix.c +++ b/libc/inet/rpc/auth_unix.c @@ -69,7 +69,6 @@ libc_hidden_proto(gettimeofday) libc_hidden_proto(fputs) libc_hidden_proto(perror) libc_hidden_proto(abort) -libc_hidden_proto(stderr) #ifdef USE_IN_LIBIO libc_hidden_proto(fwprintf) #endif diff --git a/libc/inet/rpc/clnt_tcp.c b/libc/inet/rpc/clnt_tcp.c index 6d19df31c..23e4ca863 100644 --- a/libc/inet/rpc/clnt_tcp.c +++ b/libc/inet/rpc/clnt_tcp.c @@ -85,7 +85,6 @@ libc_hidden_proto(bindresvport) libc_hidden_proto(poll) libc_hidden_proto(fputs) libc_hidden_proto(__rpc_thread_createerr) -libc_hidden_proto(stderr) #ifdef USE_IN_LIBIO libc_hidden_proto(fwprintf) #endif diff --git a/libc/inet/rpc/clnt_udp.c b/libc/inet/rpc/clnt_udp.c index 9b01d2751..9e3444069 100644 --- a/libc/inet/rpc/clnt_udp.c +++ b/libc/inet/rpc/clnt_udp.c @@ -84,7 +84,6 @@ libc_hidden_proto(recvmsg) libc_hidden_proto(poll) libc_hidden_proto(fputs) libc_hidden_proto(__rpc_thread_createerr) -libc_hidden_proto(stderr) extern u_long _create_xid (void) attribute_hidden; diff --git a/libc/inet/rpc/clnt_unix.c b/libc/inet/rpc/clnt_unix.c index c5e949db6..82f994e51 100644 --- a/libc/inet/rpc/clnt_unix.c +++ b/libc/inet/rpc/clnt_unix.c @@ -87,7 +87,6 @@ libc_hidden_proto(sendmsg) libc_hidden_proto(poll) libc_hidden_proto(fputs) libc_hidden_proto(__rpc_thread_createerr) -libc_hidden_proto(stderr) extern u_long _create_xid (void) attribute_hidden; diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c index b4fe8cfe7..ee47cf4f5 100644 --- a/libc/inet/rpc/rcmd.c +++ b/libc/inet/rpc/rcmd.c @@ -132,7 +132,6 @@ libc_hidden_proto(fopen) libc_hidden_proto(fclose) libc_hidden_proto(fprintf) libc_hidden_proto(__h_errno_location) -libc_hidden_proto(stderr) #ifdef __UCLIBC_HAS_XLOCALE__ libc_hidden_proto(__ctype_b_loc) libc_hidden_proto(__ctype_tolower_loc) diff --git a/libc/inet/rpc/rpc_private.h b/libc/inet/rpc/rpc_private.h index 4826d362b..15250059a 100644 --- a/libc/inet/rpc/rpc_private.h +++ b/libc/inet/rpc/rpc_private.h @@ -5,7 +5,6 @@ extern u_long _create_xid (void) attribute_hidden; libc_hidden_proto(__rpc_thread_createerr) -libc_hidden_proto(stderr) /* * Multi-threaded support diff --git a/libc/inet/rpc/svc_tcp.c b/libc/inet/rpc/svc_tcp.c index c94f2de07..035119d7e 100644 --- a/libc/inet/rpc/svc_tcp.c +++ b/libc/inet/rpc/svc_tcp.c @@ -83,7 +83,6 @@ libc_hidden_proto(listen) libc_hidden_proto(fputs) libc_hidden_proto(fclose) libc_hidden_proto(abort) -libc_hidden_proto(stderr) /* * Ops vector for TCP/IP based rpc service handle diff --git a/libc/inet/rpc/svc_udp.c b/libc/inet/rpc/svc_udp.c index 53ef7ab35..d2ed68d1b 100644 --- a/libc/inet/rpc/svc_udp.c +++ b/libc/inet/rpc/svc_udp.c @@ -81,7 +81,6 @@ libc_hidden_proto(recvmsg) libc_hidden_proto(sendmsg) libc_hidden_proto(fputs) libc_hidden_proto(fprintf) -libc_hidden_proto(stderr) #define rpc_buffer(xprt) ((xprt)->xp_p1) #ifndef MAX diff --git a/libc/inet/rpc/svc_unix.c b/libc/inet/rpc/svc_unix.c index d91a9acbb..1683bd3ba 100644 --- a/libc/inet/rpc/svc_unix.c +++ b/libc/inet/rpc/svc_unix.c @@ -82,7 +82,6 @@ libc_hidden_proto(accept) libc_hidden_proto(listen) libc_hidden_proto(fputs) libc_hidden_proto(abort) -libc_hidden_proto(stderr) /* * Ops vector for AF_UNIX based rpc service handle diff --git a/libc/inet/rpc/xdr.c b/libc/inet/rpc/xdr.c index 34787a898..e8009910f 100644 --- a/libc/inet/rpc/xdr.c +++ b/libc/inet/rpc/xdr.c @@ -58,7 +58,6 @@ libc_hidden_proto(fwprintf) libc_hidden_proto(strlen) libc_hidden_proto(fputs) -libc_hidden_proto(stderr) /* * constants specific to the xdr "protocol" diff --git a/libc/inet/rpc/xdr_array.c b/libc/inet/rpc/xdr_array.c index ddafc63b7..5f21fb29e 100644 --- a/libc/inet/rpc/xdr_array.c +++ b/libc/inet/rpc/xdr_array.c @@ -57,7 +57,6 @@ libc_hidden_proto(fwprintf) libc_hidden_proto(memset) libc_hidden_proto(fputs) libc_hidden_proto(xdr_u_int) -libc_hidden_proto(stderr) #define LASTUNSIGNED ((u_int)0-1) diff --git a/libc/inet/rpc/xdr_rec.c b/libc/inet/rpc/xdr_rec.c index 99e6fe9c3..5f9e2b1fe 100644 --- a/libc/inet/rpc/xdr_rec.c +++ b/libc/inet/rpc/xdr_rec.c @@ -63,7 +63,6 @@ libc_hidden_proto(fwprintf) libc_hidden_proto(memcpy) libc_hidden_proto(fputs) libc_hidden_proto(lseek) -libc_hidden_proto(stderr) static bool_t xdrrec_getlong (XDR *, long *); static bool_t xdrrec_putlong (XDR *, const long *); diff --git a/libc/inet/rpc/xdr_reference.c b/libc/inet/rpc/xdr_reference.c index 842d54426..7201def7a 100644 --- a/libc/inet/rpc/xdr_reference.c +++ b/libc/inet/rpc/xdr_reference.c @@ -58,7 +58,6 @@ libc_hidden_proto(fwprintf) libc_hidden_proto(memset) libc_hidden_proto(xdr_bool) libc_hidden_proto(fputs) -libc_hidden_proto(stderr) #define LASTUNSIGNED ((u_int)0-1) diff --git a/libc/misc/assert/__assert.c b/libc/misc/assert/__assert.c index 4282812a5..1ab84fc56 100644 --- a/libc/misc/assert/__assert.c +++ b/libc/misc/assert/__assert.c @@ -35,7 +35,6 @@ libc_hidden_proto(fprintf) libc_hidden_proto(abort) -libc_hidden_proto(stderr) /* Get the prototype from assert.h as a double-check. */ #undef NDEBUG diff --git a/libc/misc/error/err.c b/libc/misc/error/err.c index 00e74ce61..cd331500a 100644 --- a/libc/misc/error/err.c +++ b/libc/misc/error/err.c @@ -29,7 +29,6 @@ libc_hidden_proto(vfprintf) libc_hidden_proto(__xpg_strerror_r) libc_hidden_proto(exit) libc_hidden_proto(vfprintf) -libc_hidden_proto(stderr) static void vwarn_work(const char *format, va_list args, int showerr) { diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c index 3e44a01ee..bad1843e6 100644 --- a/libc/misc/error/error.c +++ b/libc/misc/error/error.c @@ -35,8 +35,6 @@ libc_hidden_proto(vfprintf) libc_hidden_proto(fflush) libc_hidden_proto(fputc) libc_hidden_proto(__fputc_unlocked) -libc_hidden_proto(stdout) -libc_hidden_proto(stderr) /* This variable is incremented each time `error' is called. */ unsigned int error_message_count = 0; diff --git a/libc/misc/gnu/obstack.c b/libc/misc/gnu/obstack.c index 99311183f..5fc031555 100644 --- a/libc/misc/gnu/obstack.c +++ b/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 variable by default points to the internal function `print_and_abort'. */ -libc_hidden_proto(obstack_alloc_failed_handler) # if defined __STDC__ && __STDC__ static void print_and_abort (void); 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 (); void (*obstack_alloc_failed_handler) () = print_and_abort; # endif -libc_hidden_data_def(obstack_alloc_failed_handler) /* 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(abort) libc_hidden_proto(exit) -libc_hidden_proto(stderr) #ifdef __UCLIBC_HAS_WCHAR__ libc_hidden_proto(fwprintf) #endif -libc_hidden_proto(obstack_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 to avoid multiple evaluation. */ diff --git a/libc/misc/internals/__uClibc_main.c b/libc/misc/internals/__uClibc_main.c index a63345d68..869c9e178 100644 --- a/libc/misc/internals/__uClibc_main.c +++ b/libc/misc/internals/__uClibc_main.c @@ -113,23 +113,15 @@ strong_alias (__progname_full, program_invocation_name) #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. */ -libc_hidden_proto(__environ) 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 */ -extern size_t __pagesize; -libc_hidden_proto(__pagesize) size_t __pagesize = 0; -libc_hidden_data_def(__pagesize) #ifndef O_NOFOLLOW # define O_NOFOLLOW 0 diff --git a/libc/misc/locale/locale.c b/libc/misc/locale/locale.c index e53731e94..95b0917df 100644 --- a/libc/misc/locale/locale.c +++ b/libc/misc/locale/locale.c @@ -148,10 +148,6 @@ extern void _locale_init_l(__locale_t base) attribute_hidden; #include <langinfo.h> #include <nl_types.h> -#ifdef __UCLIBC_HAS_LOCALE__ -libc_hidden_proto(__global_locale) -#endif - /**********************************************************************/ #ifdef L_setlocale @@ -377,12 +373,9 @@ libc_hidden_proto(__ctype_toupper) __uclibc_locale_t __global_locale_data; __locale_t __global_locale = &__global_locale_data; -libc_hidden_data_def(__global_locale) #ifdef __UCLIBC_HAS_XLOCALE__ -libc_hidden_proto(__curlocale_var) __locale_t __curlocale_var = &__global_locale_data; -libc_hidden_data_def(__curlocale_var) #endif /*----------------------------------------------------------------------*/ @@ -1386,8 +1379,6 @@ void freelocale(__locale_t dataset) /**********************************************************************/ #ifdef L_uselocale -libc_hidden_proto(__curlocale_var) - libc_hidden_proto(uselocale) __locale_t uselocale(__locale_t dataset) { @@ -1420,8 +1411,6 @@ libc_hidden_def(uselocale) #ifdef __UCLIBC_HAS_THREADS__ -libc_hidden_proto(__curlocale_var) - __locale_t weak_const_function __curlocale(void) { return __curlocale_var; /* This is overriden by the thread version. */ diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c index 9cc59d008..f95ad2351 100644 --- a/libc/misc/time/time.c +++ b/libc/misc/time/time.c @@ -1715,15 +1715,9 @@ static const char vals[] = { #define DEFAULT_RULES (vals + 22) /* Initialize to UTC. */ -libc_hidden_proto(daylight) int daylight = 0; -libc_hidden_data_def(daylight) -libc_hidden_proto(timezone) long timezone = 0; -libc_hidden_data_def(timezone) -libc_hidden_proto(tzname) char *tzname[2] = { (char *) UTC, (char *) (UTC-1) }; -libc_hidden_data_def(tzname) #ifdef __UCLIBC_HAS_THREADS__ attribute_hidden pthread_mutex_t _time_tzlock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c index a795986e8..91a78fb22 100644 --- a/libc/misc/wchar/wchar.c +++ b/libc/misc/wchar/wchar.c @@ -111,9 +111,6 @@ #include <wchar.h> #include <bits/uClibc_uwchar.h> -#ifdef __UCLIBC_HAS_LOCALE__ -libc_hidden_proto(__global_locale) -#endif /*********************************** |