delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/23/03:46:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199909230744.CAA22202@mercury.xraylith.wisc.edu>
To: " Clark Sims " <clarksimsgnu AT my-Deja DOT com>
cc: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: How to generate map file.
In-Reply-To: Your message of "Wed, 22 Sep 1999 17:42:06 PDT."
<LFHFNNPHEKIPAAAA AT my-deja DOT com>
Date: Thu, 23 Sep 1999 02:44:11 -0500
From: Mumit Khan <khan AT thor DOT xraylith DOT wisc DOT edu>

" Clark Sims " <clarksimsgnu AT my-Deja DOT com> writes:
> System: NT 4 SV5
> Compiler: b20.1  Gcc 2.95
> 
> How does one generate a map file. I have tried using the standard flags, -Map
>  -Wi but the compiler doesn't seem to recognize them.
> 

To pass a linker flag, you need to to -Wl, and the linker flags you
want to pass you can get from the linker (ld) documentation. 

  $ gcc -o foo.exe -Wl,-Map,foo.map foo.c

will produce a foo.map file.

To dump the map to standard error, use --print-map or -M. You should also 
consider adding -Wl,--cref for cross-referencing.

  $ gcc -o foo.exe -Wl,-M foo.c 2>&1 | less
  $ gcc -o foo.exe -Wl,--print-map foo.c 2>&1 | less

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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