svn commit: trunk/uClibc: libcrypt libutil

Peter S. Mazinger ps.m at gmx.net
Sat Oct 8 10:19:24 UTC 2005


On Fri, 7 Oct 2005, Steven J. Hill wrote:

> psm at uclibc.org wrote:
> > Author: psm
> > Date: 2005-10-07 09:27:57 -0700 (Fri, 07 Oct 2005)
> > New Revision: 11801
> > 
> > Log:
> > Doing the compile in one step creates smaller archives, libcrypt.a
>  > shrinks from 12k to 10k, libutil.a to 8k to 4k. Use make provided
>  > features where possible /$</$^.
> >
> Yes, it shrinks things so much that 'crypt' no longer exists and busybox
> won't even link against it because it complains about missing 'crypt'. It
> totally f**cked buildroot. Revert your change or fix it.
> 
> -Steve

gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing   -fno-stack-protector-all -fstack-protector -fno-builtin -nostdinc -D_LIBC -I../include -I.  -mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os -funit-at-a-time   -isystem /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.4/include -DNDEBUG -fPIC -fstack-protector-all -o libcrypt.o -c crypt.c des.c md5.c
strip -x -R .note -R .comment libcrypt.o
install -d ../lib
rm -f ../lib/libcrypt.a
ar cr ../lib/libcrypt.a libcrypt.o
rm -f ../lib/libcrypt-0.9.28.so ../lib/libcrypt.so.0 ../lib/libcrypt.so
ld  -shared --warn-common --warn-once -z combreloc -z defs -s -z relro -z now -soname=libcrypt.so.0 \
	-o ../lib/libcrypt-0.9.28.so --whole-archive ../lib/libcrypt.a \
	--no-whole-archive ../libc/misc/internals/interp.o \
	-L../lib -lc  /usr/lib/gcc/i386-gentoo-linux-uclibc/3.4.4/libgcc.a
ln -sf libcrypt-0.9.28.so ../lib/libcrypt.so.0
ln -sf libcrypt-0.9.28.so ../lib/libcrypt.so

# nm -D --defined-only ../lib/libcrypt-0.9.28.so
00004000 A __bss_start
00001113 T __des_crypt
00002254 R __dl_ldso__
00001811 T __md5_crypt
00004000 A _edata
00015508 A _end
00001b8a T crypt /* crypt is here, do you have it too */
00001344 T encrypt
000012cb T setkey

have you tried building static busybox maybe?

Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list