you
can do it, but it will not solve your problem.
linking libc statically with executable doesn't shrink
it, it is still the executable and libc together.
another resolution might be to see what calls to libc
you are using and to put their implementation (as source) in your own
libc
(create a subset of libc ->
mylibc)
second resolution that now came up to me : try to
strip it. (use the 'strip; tool on the exe and on
libc)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wed, January 03, 2001 10:06 AM
To: ILUG
Subject: making a static binary out a dynamichiI'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.sobut libc.so compressed is bigger then 1440k.can i link the binary with libc.so and make it static ?note that i do not have the source code for that binary-- Regards, Erez Doron Infineon Technologies Savan
