On Sat, Jul 09, 2011 at 11:43:36AM +0200, Daniel Mack wrote: > On Sat, Jul 9, 2011 at 9:06 AM, Bernhard Reutner-Fischer > <[email protected]> wrote: > > All functions should remain in Linbc, the libresolv stub should be kept > > as-is (as a dummy lib) . How big is it, size (1) wise resp. Bloat-o-meter > > wise? > > The .text section grew by ~5k from 262947 to 268335 bytes in libc, and > from 42 bytes to 3985 bytes in libresolv. > > And because it adds some code, I'm curious why you would like to have > everything in libc instead of leaving it to the user whether support > for these symbols is needed at all. For a system with no network > support at all, for example, users could decide to save some bytes by > not adding it. And all packages I've seen so far include -lresolv in > case they need the resolver functions.
Note that if you're using shared libraries, the very fact that you're loading an additional shared library wastes *at least* 4-5k of non-sharable dirty memory *per process*, not just space in the filesystem. And for static libraries, only the modules that are referenced will get linked anyway. Splitting up libc into multiple .a or .so files is simply a huge inefficiency that should be abolished. Rich _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
