Message-ID: <363F9757.8FB1B895@gmx.net> Date: Tue, 03 Nov 1998 22:52:55 -0100 From: Robert Hoehne Organization: none provided X-Mailer: Mozilla 4.01 [de] (Win95; I) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: 'Strip' embedded an e-mail into my EXE file X-Priority: 3 (Normal) References: <839A27A68A04DE60 DOT 6224419AAD77CA50 DOT F73B2D5370AB106D AT library-proxy DOT airnews DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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 * * Post: Am Berg 3, D-09573 Dittmannsdorf, Germany * * WWW: http://www.tu-chemnitz.de/~sho/rho * ******************************************************