Map file generation using arm-none-eabi

Hi all,

We generally get executable and linkable file(ELF) to program Microcontrollers. I wanted to generate MAP file using this elf file to observe various sections of memory. How is it possible using toolchain arm-none-eabi toolchain?

So far I have done something like:

arm-none-eabi-gcc.exe -Xlinker -Map=out.map program.elf

to get some linker script  and memory map

but it is not an exact map file

any suggestions?

best,

Fahad