Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to parse gcc map file

787 views
Skip to first unread message

Peter Cheung

unread,
Apr 9, 2016, 7:20:06 AM4/9/16
to
Hi All
What is the best way to parse gcc generated map file? I want to display a table that contains memory-offset-symbol/object.

thanks
from Peter (cmk...@hotmail.com)

Mike Sieweke

unread,
Apr 23, 2016, 11:33:38 PM4/23/16
to
Peter Cheung <mche...@gmail.com> wrote:
> What is the best way to parse gcc generated map file? I want to display a
> table that contains memory-offset-symbol/object.

The easiest way might be not to parse it at all. You can
use objdump to get the offset/symbol info from the .elf
file without all the extraneous detail in the map file.

The command might look something like this:
objdump -t -C app.elf >app.symbols

Mike

Peter Cheung

unread,
Apr 25, 2016, 3:11:31 AM4/25/16
to
Mike Sieweke於 2016年4月24日星期日 UTC+8上午11時33分38秒寫道:
Thanks Mike
0 new messages