This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Reduce glibc libraries...
- To: glibc-linux at ricardo dot ecn dot wfu dot edu
- Subject: Re: Reduce glibc libraries...
- From: dony <dony dot he at huawei dot com dot cn>
- Date: Fri, 03 Mar 2000 20:12:16 +0800
- References: <38BCB3B5.641807ED@huawei.com.cn> <38BF1EDC.6C9E4790@ctam.com.au>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
Brendan J Simon wrote:
> dony wrote:
>
> > Hello,
> > I have a problem to ask when applying embed-linux in our product.
> > Since our application may need many share libraries when running,
> > and most of these libraries seem to be too large: libc.so.6 is about
> > 1.5M, and the ld.so.1 is about 180K, and there are still other
> > libraries...
> > If I put the linux kernel and root-fs in my flash(about 2M), I am
> >
> > fear that there may be no enough space to hold all of them. So do I have
> >
> > to modify and remove any unuseful sources from the glibc libraries to
> > reduce the size of libraries I need? But it is too difficult. So what's
> > your suggestions or alternative methods ? Does it make any difference
> > if I compile my application with static-link options "-s"? Are there
> > someone to do these jobs now?
>
> Have you stripped the debugging info from the libraries ?
> If not then use "strip" or "objdump [--strip-all] [--strip-debug]
> [--strip-unneeded]" .
Thank you Brendan :-)
I have not heard from you for a long time. How are you ?
BTW:
objdump should be "objcopy"?
Can the apps run correctly on the target If I use these stripped
libraries?
dony