On Sun, Apr 18, 2010 at 8:15 PM, Denys Vlasenko
<[email protected]> wrote:
> On Sat, Apr 17, 2010 at 11:26 PM, Rob Landley <[email protected]> wrote:
>> On Linux, or allnoconfig is 10k.  (I'm not sure _why_ it's 10k, I thought it
>> used to be more like 5k, but oh well...)
>
> Stdio has been linked in. The fix:
>
> --- busybox.4/libbb/appletlib.c 2010-04-07 09:01:43.000000000 -0700
> +++ busybox.5/libbb/appletlib.c 2010-04-18 17:56:37.852641576 -0700
> @@ -105,7 +105,9 @@ static const char *unpack_usage_messages
>
>  static void full_write2_str(const char *str)
>  {
> -       xwrite_str(STDERR_FILENO, str);
> +       // This uses stdio:
> +       //xwrite_str(STDERR_FILENO, str);
> +       write(STDERR_FILENO, str, strlen(str));
>  }

Sizes with the patch:

# size busybox.uclibc32 busybox.glibc32 busybox.glibc64
   text    data     bss     dec     hex filename
   5023      40     976    6039    1797 busybox.uclibc32
   2701     288      24    3013     bc5 busybox.glibc32
   3386     564      48    3998     f9e busybox.glibc64

uclibc build is static. glibc builds are dynamic.

-- 
vda
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to