This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How to generate a map file?
Thanks!
Another question: how can I get line number in source code file via an responding instruction address. Using 'nm', i can just locate it to a function.
Can 'nm' do it?
----- Original Message -----
From: Gary D. Thomas
To: Water He
Cc: eCos Discussion
Sent: Tuesday, April 01, 2003 9:15 AM
Subject: Re: [ECOS] How to generate a map file?
On Mon, 2003-03-31 at 18:09, Water He wrote:
> After I build my elf file, I want to know what a function's entry address is or a variable's address is.
> How to generate a map file?
>
The easiest way is to use 'nm'. For example:
% arm-elf-nm <file>
--
.--------------------------------------------------------.
| Mind: Embedded Linux and eCos Development |
|--------------------------------------------------------|
| Gary Thomas email: gary dot thomas at mind dot be |
| Mind ( http://mind.be ) tel: +1 (970) 229-1963 |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc |
'--------------------------------------------------------'