[Haifux] Huge file with static linking

2003-03-06 Thread Eli Billauer
Hello all. For my own peculiar reasons, I need to compile something statically. This might appear to be a trivial question, but after quite a few trials it seems like I can't find the right words to ask google with. So I ask you. Here is my program. I hope you can inderstand what it does,

Re: [Haifux] Huge file with static linking

2003-03-06 Thread Muli Ben-Yehuda
On Thu, Mar 06, 2003 at 09:22:46PM +0200, Eli Billauer wrote: And here's my little session: [EMAIL PROTECTED] helloworld]$ gcc -static -o hello hello.c You forgot -O2, and you forgot to give your machine a name! [EMAIL PROTECTED] helloworld]$ ls -l hello -rwxrwxr-x1 eli eli

Re: [Haifux] Huge file with static linking

2003-03-06 Thread Eli Billauer
Muli Ben-Yehuda wrote: You forgot -O2, and you forgot to give your machine a name! Actually, neither. I figured out that -O2 didn't help. As for my machine's name, it's like getting a dog who already responds to a name. You don't change it. ;) You forgot to run strip(1). Hmmm. I

Re: [Haifux] Huge file with static linking

2003-03-06 Thread Muli Ben-Yehuda
On Thu, Mar 06, 2003 at 09:45:36PM +0200, Eli Billauer wrote: strip(1). Anything beyond that requires assembly and careful massaging. Really? This is the end of it? How come /sbin/insmod.static is so small? What do they know that I don't? Do you know for a fact that insmod.statis was