Re: Linux 2.4.x - reduce size of /lib libraries in ramdisk
- From: Laurenz Albe <invite@xxxxxxxxxxxxxxx>
- Date: 30 Jan 2006 08:11:43 GMT
dchou4u@xxxxxxxxxxx wrote:
> I am running Snapgear 2.4.x kernel on an embedded ARM board. We like to
> reduce the size of the ramdisk and discovered that the bulk of the
> ramdisk is used by libaries in /lib.
>
> I have removed the big stuff in /bin such as bash, fdisk and etc, but
> still it is not reducing the size of the libraries in /lib.
>
> I believe the binaries in /bin are using these libraries since they are
> dynamically linked. Has anyone successfully reduced the size taken by
> these /lib libraries?
There are several approaches to this problem:
1) Strip the shared libraries, if you have not already done that.
2) Statically link the executables you need and remove the shared libraries
altogether.
You might also investigate dietlibc, a C library you can link against
that is as slim as possible.
3) Use a kit like busybox that has alternative versions of many of the
commands you need and is optimized for small size.
Yours,
Laurenz Albe
.
- Follow-Ups:
- Re: Linux 2.4.x - reduce size of /lib libraries in ramdisk
- From: dchou4u
- Re: Linux 2.4.x - reduce size of /lib libraries in ramdisk
- From: B'ichela
- Re: Linux 2.4.x - reduce size of /lib libraries in ramdisk
- Prev by Date: Re: yum update fedora 4 undefined symbol: krb5_prompter_pocix
- Next by Date: Re: Asus A8N-vm
- Previous by thread: Grub stuck on stage 2
- Next by thread: Re: Linux 2.4.x - reduce size of /lib libraries in ramdisk
- Index(es):
Relevant Pages
|