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
Hi Ian,
Thanks for your quick reply.
I verified the .data section in the executable using readelf as you
mentioned. It is properly showing it.
Can you please guide me on how to examine the loader.
Do I need to check the crt0.s file or anything else has to be check.
Please guide me.
Chandru,
Ian Lance Taylor-3 wrote:
>
> 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
>
>
--
View this message in context: http://old.nabble.com/How-to-check-if-.data-section-is-loaded-properly-in-LMA-tp32801216p32801410.html
Sent from the gcc - Help mailing list archive at Nabble.com.