From: Hans-Bernhard Broeker 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 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"), 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.