[Buildroot] RTLD_DEEPBIND and uClibc

Stefan Fröberg stefan.froberg at petroprogram.com
Thu Jan 17 20:51:42 UTC 2013


17.1.2013 22:38, Yann E. MORIN kirjoitti:
> Stefan, All,
>
> On Thursday 17 January 2013 Stefan Fröberg wrote:
>> 17.1.2013 19:44, Yann E. MORIN kirjoitti:
>>> The full set of libraries from a full-blown eglibc, for an ARM gnueabihf
>>> target, is:
>>>                       Unstripped    Stripped
>>> Only eglibc libs      3.6MiB         2.3MiB
>>> With gcc's libs       8.8MiB         3.0MiB
>>>
>>> And for a relatively complete uClibc for x86_64 target:
>>>                       Unstripped    Stripped
>>> Only eglibc libs      2.0MiB         1.0MiB
>>> With gcc's libs       6.9MiB         1.9MiB
>>>
>>> (gcc libs: libstdc++ and libgcc_s)
>>> (These are not the same architecture, but I went for the toolchains I have
>>> locally)
>>>
>>> So, typically, speaking only about the C library libs, the gain would be
>>> around ~1.5MiB.
>> Here's the contents of my target /lib
> [--SNIP--]
>> As you can see from the top of the line the total sum of uClibc + *all
>> the other stuff (pam etc..)* is just
>> 1.4 MB (the size of libuClibc-0.9.33.2.so itself is just 690 KB)
> uClibc == libuClibc.so + libutil.so + ld-uClibc.so + librt.so + libnsl.so
>           + libm.so + libdl.so + libcrypt.so
>
> Which totals around 905KiB in your case. Just about the number I gave
> you in my previous mail (mine was exactly 1004KiB). And the eglibc numbers
> are for the same set of libraries (plus all the libnss libs uClibc does
> not have).
>
>> So uClibc wins this round :-)
> Yes, in absolute numbers, uClibc *is* smaller than (e)glibc.
> We *never* said it was bigger.
>
> What Thomas and I are saying, is that you gained about 1.5MiB on your
> 520MiB filesystem. That's about a 0.29% gain. Was that worth the hassle?
> (Beside learning, of course.)

My gentoo box with similar configuration is 1500 MB. So yeah I think it
was worth the hassle :-)

Regards
Stefan



More information about the buildroot mailing list