delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/24/22:27:42

From: dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de
Subject: Re: Bugs with gcc
24 Jan 1997 22:27:42 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <009AEDD6.B1495B40.8255.cygnus.gnu-win32@ifk20.mach.uni-karlsruhe.de>
Original-To: aurel AT xylo DOT owl DOT de
Original-CC: gnu-win32 AT cygnus DOT com, dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Hi, you wrote:

: > : firstly, compiling/linking with the -s flag to g++ causes an executable
: > : to be produced, that will not run, - apparently a non NT executable.

: > What do you expect -s to do, please?
: 
: The -s flag is passed to ld and is defined on the man-page for ld
: on any UNIX system. So there must be a problem with ld when
: stripping a executable. -s means stripping the executable.
: It is done directly by ld (no call of strip)
: 
:         Aurel Balmosan

Summarizing what several kindly people said and some more info of mine:
There is *no* -s in my man page for gcc/g++ on unix (v2.7)!
Using -Wl,-s would have put me on the right track, as -Wl is documented.
man ld on hp-ux shows no -S, and on DECunix/Alpha ld -S is something else.
GNU ld --help on cygwin explains -S as stripping debug symbols.
Indeed all 3 have -s!
 

Bye, Heribert (dahms AT ifk20 DOT mach DOT uni-karlsruhe DOT de)
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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