Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Linux Software

Can you Shrink glibc? 6

alterity asks: "I want to roll my own root/boot rescue disk. So far so good - I have created a root/boot disk that works with the latest stable kernel and glibc(2.1). I have saved space using busybox and asmutils. But the biggest dead-weight of space is the the size of the glibc library - a touch over one meg. I notice that the Debian distribution has a much reduced glibc library under 400k in size. Does anyone know how they do it and what can be excised from glibc for this purpose?" Shrinking critical libraries is always good thing.
This discussion has been archived. No new comments can be posted.

Honey? Can you Shrink glibc?

Comments Filter:
  • To remove the symbols try tooling around with the "strip" command. From the manpage:

    DESCRIPTION
    GNU strip discards all symbols from the object files objfile. The list of object files may include archives. At least one object file must be given.

    ~Kevin
    :)
  • Well, this may seem obvious, but someone has to say it. Is it stripped, or is it full of debug info? :-)

    Otherwise, nary a clue, I use Slackware (libc5 still).
  • Checking for the symbols is easy enough. nm will give you that. It seems that I have to make use of it every time we upgrade a third party tool here at work, because some folks are constantly renaming libraries and moving things around.

    How to remove the ones you don't want might be a bit tougher. One possiblity would be to do it by hand, going through glibc looking at the contents of the files and removing what you don't need, for a trimmed down version.

Make sure your code does nothing gracefully.

Working...