libc_hidden_proto removal

Denys Vlasenko vda.linux at googlemail.com
Thu Nov 20 22:20:05 UTC 2008


On Thursday 20 November 2008 10:11, Bernhard Reutner-Fischer wrote:
> On Thu, Nov 20, 2008 at 10:07:29AM +0100, Carmelo AMOROSO wrote:
> > Bernhard Reutner-Fischer wrote:
> >> Carmelo, is the synch completed?
> >>
> > not yet.. in progress.
> > I need to be sure that all is continuing to build at least.
> > should expect some other commit in these days.
> > sorry.
> 
> np, please let us know when you are done.
> Thanks alot for your effort && cheers,
> Bernhard
> 
> >> Denys, i'm curious about the pattern you use to remove the
> >> libc_hidden_protos. Perhaps you could do that on a per header base
> >> like i did for the math stuff?

I started from the most used symbols.

I am done now, the result looks like this:

    text           data     bss     dec     hex filename
- 257321           1831   12584  271736   42578 lib/libuClibc-0.9.30-svn.so
+ 253999           1799   12584  268382   4185e lib/libuClibc-0.9.30-svn.so

Huge swaths of

/* libc_hidden_proto(socket) */
/* libc_hidden_proto(close) */
/* libc_hidden_proto(fopen) */
/* libc_hidden_proto(fclose) */
/* libc_hidden_proto(random) */
/* libc_hidden_proto(getservbyport) */
/* libc_hidden_proto(gethostname) */
/* libc_hidden_proto(uname) */
/* libc_hidden_proto(inet_addr) */
/* libc_hidden_proto(inet_aton) */
/* libc_hidden_proto(inet_pton) */
/* libc_hidden_proto(inet_ntop) */
/* libc_hidden_proto(connect) */
/* libc_hidden_proto(poll) */
/* libc_hidden_proto(select) */
/* libc_hidden_proto(recv) */
/* libc_hidden_proto(send) */
/* libc_hidden_proto(printf) */
/* libc_hidden_proto(sprintf) */
/* libc_hidden_proto(snprintf) */
/* libc_hidden_proto(fgets) */
/* libc_hidden_proto(getnameinfo) */

remain, we can remove it later.

Please, if something broke, yell at me (and mail your .config).
--
vda



More information about the uClibc mailing list