From f3b4c74b53903b32d1b852b381ae22b140b7b05b Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 26 Nov 2005 14:14:05 +0000 Subject: 100 JUMP relocs less (remaining 431) by hiding internally used ones --- libc/stdlib/atexit.c | 4 ++-- libc/stdlib/valloc.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c index e9710b038..a01fb29e2 100644 --- a/libc/stdlib/atexit.c +++ b/libc/stdlib/atexit.c @@ -95,7 +95,7 @@ extern struct exit_function *__exit_function_table; #else extern struct exit_function __exit_function_table[__UCLIBC_MAX_ATEXIT]; #endif -extern struct exit_function *__new_exitfn (void); +extern struct exit_function *__new_exitfn (void) attribute_hidden; /* this is in the L___cxa_atexit object */ extern int __cxa_atexit (cxaefuncp, void *arg, void *dso_handle); @@ -237,7 +237,7 @@ struct exit_function __exit_function_table[__UCLIBC_MAX_ATEXIT]; * Find and return a new exit_function pointer, for atexit, * onexit and __cxa_atexit to initialize */ -struct exit_function *__new_exitfn(void) +struct exit_function attribute_hidden *__new_exitfn(void) { struct exit_function *efp; diff --git a/libc/stdlib/valloc.c b/libc/stdlib/valloc.c index b008ac399..c1d6d29a5 100644 --- a/libc/stdlib/valloc.c +++ b/libc/stdlib/valloc.c @@ -20,6 +20,8 @@ Cambridge, MA 02139, USA. The author may be reached (Email) at the address mike@@ai.mit.edu, or (US mail) as Mike Haertel c/o Free Software Foundation. */ +#define getpagesize __libc_getpagesize + #include #include #include -- cgit v1.2.3