www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/22/21:19:05

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: <37E97F82.1DD7404C@ctam.com.au>
Date: Thu, 23 Sep 1999 11:16:50 +1000
From: Brendan Simon <bsimon AT ctam DOT com DOT au>
Reply-To: bsimon AT ctam DOT com DOT au
Organization: CTAM Pty Ltd
X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i586)
X-Accept-Language: en
MIME-Version: 1.0
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.
References: <LFHFNNPHEKIPAAAA AT my-deja DOT com>

Clark Sims wrote:

> 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.

You need to consult the GCC and GLD manuals.  There are some online at www.gnu.org or www.objsw.com.

The linker generates the map file and there are two options.  -M outputs to standard output and -Map <file> outputs to a file.

try these:
$ ld prog.o -M > prog.map
$ ld prog.o -Map prog.map
$ gcc prog.c -Wl,-M > prog.map (I'm not sure if this is will work)
$ gcc prog.c -Wl,-Map,prog.map

$ gcc prog.c -Map prog.map might work as I think gcc passes any unknown command line options to the linker.  If not, then you have to
use -Wl if using gcc to link.

Brendan Simon.


--
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