On Wed, Jan 03, 2001, [EMAIL PROTECTED] wrote about "making a static binary out a 
dynamic":
> hi
> I'm trying to create a boot disk, and i have to use a ramdisk,
> the makimum ramdisk size is 1440k (compressed )
> the problem is that i have to put in the ramdisk, a binary which uses libc.so
> but libc.so compressed is bigger then 1440k.
> can i link the binary with libc.so and make it static ?

Though you can go that way (it can help if the program is using only a small
subset of libc.so), another way to go is to strip libc.so (you're actually
allowed to do that!). In a test I conducted, this lowered the size of libc.so
from 4.6M to only 1.2M (compressing it, it fits easily in a diskette).

To gain the most from the stripping, do the following:

        strip -s  -R .note -R .comment libc.so


-- 
Nadav Har'El                        |      Wednesday, Jan 3 2001, 8 Tevet 5761
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Always keep your words soft and sweet,
http://nadav.harel.org.il           |just in case you have to eat them.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to