Mail Archives: djgpp/1998/11/03/17:04:16.1
Kirk Hobart wrote :
>
> I'm running DJGPP in a DOS window under Win95. I compiled a trivial
> "hello world" C program using gcc v2.81 and strip v2.8.1:
>
> gcc -Wall hello.c -o hello.exe
> strip hello.exe
>
> I examined hello.exe with a hex viewer, and found a chunk of
> irrelevant text located about 2k bytes into the file. I recognized it
> as a recent e-mail. YIKES! Each time I repeat the compile+strip
> process, strip embeds different junk into hello.exe.
>
> Is 'strip' guilty of this evil, or is my DJGPP installation broken?
This is a known misfeature of the DJGPP port of binutils
(where strip belongs to). To solve this, create the stripped
executable directly by adding the -s switch to gcc
gcc -s -Wall hello.c -o hello.exe
Robert
--
******************************************************
* email: Robert Hoehne <robert DOT hoehne AT gmx DOT net> *
* Post: Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW: http://www.tu-chemnitz.de/~sho/rho *
******************************************************
- Raw text -