This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: -rdynamic and -static
- From: "Stéphane Doyon" <s dot doyon at videotron dot ca>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com, Stéphane Doyon <s dot doyon at videotron dot ca>
- Date: Thu, 11 Apr 2002 10:13:40 -0400 (EDT)
- Subject: Re: -rdynamic and -static
On Wed, 10 Apr 2002, H . J . Lu wrote:
> On Wed, Apr 10, 2002 at 09:24:19AM -0400, Stéphane Doyon wrote:
> > Hello,
> >
> > [Please Cc me as I am not subscribed.]
> >
> > Our software has modules that are implemented as shared libraries. But
> > now there's a situation where we need it to be statically linked, and we
> > can't figure out how to get it to work.
> >
> > The software is called BRLTTY; it drives braille displays. There is a
> > central module that implements screen review functions, and there are
> > several driver modules, one for each supported braille display model. The
> > driver modules are implemented as shared libraries, so we can choose at
> > run-ttime which one to use.
> >
> > Now we want to make an accessible boot diskettes / distribution
> > installation diskettes. We link our main BRLTTY module statically,
> > because we don't have a sufficiently small libc and friends.
> >
>
> Are you using glibc? You can customize my sglibc to strip out stuffs
> you don't need. You may get glibc down to about 500KB or less.
I'll keep that in mind, but I really was hoping we wouldn't have to go
into glibc customization... Where can I find it BTW, the links that google
found seem to all be broken?
I also tried mklib.sh from the Debian bootdisk package. It did shrink the
libs a lot but in the end they were still 1.6MB, while the statically
linked main module is only about 550KB (which still seems bloated).
--
Stéphane Doyon
<s.doyon@videotron.ca>
http://pages.infinit.net/sdoyon/