On Wed, 3 Jan 2001, Mevorach, Assaf wrote:
> hey even for the sake of the argument you cant pretend you dont know that
> libc DOESNT use dynamic load library (dlopen).
why do you think that? libc contains code that uses /etc/nsswitch.conf to
check where to get certain types of info from (files,
> -Original Message-
> From: guy keren [mailto:[EMAIL PROTECTED]]
> Sent: Thu, January 04, 2001 1:23 AM
> To: Mevorach, Assaf
> Cc: '[EMAIL PROTECTED]'; ILUG
> Subject: RE: making a static binary out a dynamic
>
>
> On Wed, 3 Jan 2001, Mevorach,
On Wed, 3 Jan 2001, Mevorach, Assaf wrote:
> > this is exactly what the linker does - only it does so effotrlessly.
> here you are not right, the linker add the trasitive closure of the calls
> from libc you did, and since it can not
> add evryfunction on its own it adds the entire object file it
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,
> -Original Message-
> From: guy keren [mailto:[EMAIL PROTECTED]]
> Sent: Wed, January 03, 2001 12:50 PM
> To: Mevorach, Assaf
> Cc: '[EMAIL PROTECTED]'; ILUG
> Subject: RE: making a static binary out a dynamic
>
>
>
> On Wed, 3 Jan 2001, Mev
nks
a library to an executeable, it only takes the parts of the library that
are recursively used by the binary. it does not rull in the complete
library into the resulting static binary. libc would add about 800KB (or
even less) to a normal application - that's the figure i believe i saw.
&g
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
AMTo: ILUGSubject: ma
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 stati
use full path to the library instead use -l flag or -non_shared options
on the command line.
Erez Doron wrote:
> HI
>
> how do i make a static binary so I will not
> be dependent upon libc versions ?
>
&
Erez Doron writes:
> how do i make a static binary so I will not
> be dependent upon libc versions ?
gcc -static
--
Alex Shnitman| http://www.debian.org
[EMAIL PROTECTED], [EMAIL PROTECTED] +---
http://alexsh.hectic.netUIN
HI
how do i make a static binary so I will not
be dependent upon libc versions ?
regards
erez.
11 matches
Mail list logo