[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: making a static binary out a dynamic



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: erez@savan.com [mailto:erez@savan.com]
Sent: Wed, January 03, 2001 10:06 AM
To: ILUG
Subject: 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 ?
note that i do not have the source code for that binary
-- 
Regards,

Erez Doron
Infineon Technologies Savan