www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/24/08:02:54

Date: Wed, 24 Apr 1996 07:55:55 -0400
From: dj (DJ Delorie)
Message-Id: <199604241155.HAA20352@delorie.com>
To: naderr AT topaz DOT cqu DOT edu DOT au
CC: djgpp AT delorie DOT com
In-reply-to: <199604241011.UAA09258@linuxbox.nse.com.au> (message from root on Wed, 24 Apr 1996 20:11:00 +1000)
Subject: Re: strip { no! not you :) }

> D:\SRC\85309\ASSGN\1\Q2>strip --strip-all lbb.exe
> d:/djgpp/bin/strip.exe: lbb.exe: File format not recognized

You can't strip an EXE file.  You have to strip the COFF file, then
re-stubify it.

	gcc ... -o lbb
	strip lbb
	coff2exe lbb

Or, strip it when you link:

	gcc ... -s -o lbb.exe

> Not that it's a great concern though, I notice that
> the targets on msdos are huge compared to Linux

Linux uses shared libraries, whereas djgpp puts the library in the
executable.

- Raw text -


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