This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to check if .data section is loaded properly in LMA
- From: Ian Lance Taylor <iant at google dot com>
- To: chandru1248 <chandru1248 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 07 Nov 2011 21:58:42 -0800
- Subject: Re: How to check if .data section is loaded properly in LMA
- References: <32801216.post@talk.nabble.com>
chandru1248 <chandru1248@gmail.com> writes:
> When I load the image using the debugger I am not getting the .data section
> properly loaded in to the LMA.
>
> Is there anyway I could check if the .data section is loaded in LMA or not.
First use readelf to see if the data is present in your executable as
you expect. E.g., look at readelf -l and readelf -S output.
If that all looks fine you are going to have to examine your loader and
see why it is not doing what you expect.
Ian