RE: making a static binary out a dynamic

2001-01-04 Thread guy keren
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,

RE: making a static binary out a dynamic

2001-01-03 Thread Mevorach, Assaf
> -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,

RE: making a static binary out a dynamic

2001-01-03 Thread guy keren
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

Re: making a static binary out a dynamic

2001-01-03 Thread Nadav Har'El
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,

RE: making a static binary out a dynamic

2001-01-03 Thread Mevorach, Assaf
> -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

RE: making a static binary out a dynamic

2001-01-03 Thread guy keren
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

RE: making a static binary out a dynamic

2001-01-03 Thread Mevorach, Assaf
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

making a static binary out a dynamic

2001-01-03 Thread erez
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

Re: static binary

1999-05-04 Thread Constantin Eizner
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 ? > &

Re: static binary

1999-05-04 Thread Alex Shnitman
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

static binary

1999-05-04 Thread Erez Doron
HI how do i make a static binary so I will not be dependent upon libc versions ? regards erez.