Mail Archives: djgpp/2001/04/12/10:00:25
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 -