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?
- From: "Gary D. Thomas" <gary dot thomas at mind dot be>
- To: Water He <hyhe at PhotonicBridges dot com>
- Cc: eCos Discussion <ecos-discuss at sources dot redhat dot com>
- Date: 31 Mar 2003 18:15:33 -0700
- Subject: Re: [ECOS] How to generate a map file?
- References: <029901c2f7eb$677d5f00$bb0ba8c0@PBHYHECNSH>
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 |
'--------------------------------------------------------'
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss