This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: Regarding Map Files
- From: "Sachin O. Agrawal" <sachin_agrawal at persistent dot co dot in>
- To: <binutils at sources dot redhat dot com>
- Cc: <ananda dot motte at philips dot com>, "Devendra Badhani \(E-mail\)" <deven at pspl dot co dot in>, "Shridhar Bhat \(E-mail\)" <penguin at pspl dot co dot in>
- Date: Thu, 20 Dec 2001 18:51:56 +0530
- Subject: RE: Regarding Map Files
- Reply-to: <sachin_agrawal at persistent dot co dot in>
Hello,
Actually my intention is to find the functions and approximate
range of line numbers in sources given an address.
Usually all commercial products use logging to trace their code
flow in case of error at customer site. My opinion is that in
error conditions program itself can log stack back trace just
like a debugger (but within an optimized code).
Support engineer or customer will mail these numbers instead of
big and huge core dump to the developers. Developers will then
trace out using map files the backtrace. I agree this trace
won't be as accurate as backtrace reported by debugger but
at least it is better than huge logging.
--
Thanks
Sachin
--
-----Original Message-----
From: ananda.motte@philips.com [mailto:ananda.motte@philips.com]
Sent: Thursday, December 20, 2001 6:34 PM
To: sachin_agrawal@persistent.co.in
Subject: Re: Regarding Map Files
Basically it tells you in what portions of memory your .text .rodata .bss
.data and other sections (read GNU manual) and their respective symbol
contents are loaded and relocated to in case your image address is different
from the load address.
Ir Motte dit Falisse Ananda
Embedded Software Engineer
Portable Audio
Philips Semiconductors Leuven, Belgium
> -----Original Message-----
> From: Sachin O. Agrawal [mailto:sachin_agrawal@persistent.co.in]
> Sent: Thursday, December 20, 2001 6:05 PM
> To: 'binutils@sources.redhat.com'
> Subject: Regarding Map Files
>
>
> Hello,
>
> With -M or -Map option to the ld linker, we can create a map file.
> Does any one knows how to interpret them?
>
> --
> Thanks
> Sachin
> --