www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/03/17:04:16.1

Message-ID: <363F9757.8FB1B895@gmx.net>
Date: Tue, 03 Nov 1998 22:52:55 -0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
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>
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 <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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019