delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/12/10:00:25

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Map File?
Date: 12 Apr 2001 13:54:41 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 24
Message-ID: <9b4c31$pts$1@nets3.rz.RWTH-Aachen.DE>
References: <3ad59ca3 DOT 452030 AT news DOT soco DOT de>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 987083681 26556 137.226.32.75 (12 Apr 2001 13:54:41 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 12 Apr 2001 13:54:41 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Alexander Stapff <stapffa AT bytec-gmbh DOT de> wrote:

> I searched all of my docs but couldn't find the answer to the
> following question: With which command line switch is it possible to
> get a map file from the linker?

	gcc -Wl,-M

writes a map file to stdout. 

	gcc -Wl,-Map,myprog.map

writes it to "myprog.map"

The answer is a bit hard to find since it requires understanding two
programs: the linker itself ("info ld Invocation Options" or "info
ld", then type "imap<RETURN>"), and gcc (passing options directly to
the linker, "info gcc invo link").

Or use 'objdump' or 'nm' on the executable, any time you want.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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