This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is there a way to make static executable out of ELF shared one?
- From: "H . J . Lu" <hjl at lucon dot org>
- To: vda <vda at port dot imtp dot ilyichevsk dot odessa dot ua>
- Cc: Andrea 'Fyre Wyzard' Bocci <fwyzard at inwind dot it>, gcc at gcc dot gnu dot org,gcc-help at gcc dot gnu dot org
- Date: Tue, 11 Dec 2001 08:49:06 -0800
- Subject: Re: Is there a way to make static executable out of ELF shared one?
- References: <5.1.0.14.0.20011211160122.02768078@popmail.inwind.it> <01121117114100.01640@manta>
On Tue, Dec 11, 2001 at 05:11:41PM -0200, vda wrote:
> On Tuesday 11 December 2001 13:02, Andrea 'Fyre Wyzard' Bocci wrote:
> > At 16.22 11/12/2001 (GMT -0200), vda wrote:
> > >I need a bunch of static executables for linux initial ramdisk.
> > >I have all needed executables but some of them require .so libs.
> > >I know that static binaries can be made at compile time (ld -static)
> > >but do I really need to download source for all my binaries?
> > >
> > >There must be a way to make static binary from shared one
> >
> > Silly as it may sound - can't you just put everything (binaries & .so libs)
> > in the ramdisk ?
>
> Yes I can but most shared binaries need (guess what?....) libc
> which isn't exactly small :-(
Are you using glibc? I have a sglibc on sourceforge.net.
H.J.