[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
[coldfire-gnu-discuss] The different size is gotten from m68k-elf-nm and m68k-elf-readelf
- To: "coldfire-gnu-discuss@xxxxxxxxxxxxxxxx" <coldfire-gnu-discuss@xxxxxxxxxxxxxxxx>
- Subject: [coldfire-gnu-discuss] The different size is gotten from m68k-elf-nm and m68k-elf-readelf
- From: "Ha Luong" <haluongvn@xxxxxxxxx>
- Date: Mon, 24 Mar 2008 14:32:23 +0700
Dear Sir,
I used m68k-elf-readelf and m68k-elf-nm for calculating the elf size. But
the total size from m68k-elf-readelf is different to its from m68k-elf-nm.
I used
The total size from m68k-elf-readelf = the total of size column.
with the command line option "m68k-elf-readelf -S xxx.elf"
And The total size from m68k-elf-nm = the total of column 2
with the command line option "m68k-elf-nm.exe -S --print-size --print-armap
--size-sort xxx.elf"
I double checked by used m68k-elf-objdump by calculating each variable and
each function. I saw its total size is equal The total size from
m68k-elf-nm.
I don't know why the total size from m68k-elf-readelf is different to its
from m68k-elf-nm. Could you please help me?
Thanks,
Ha Luong
Attachment:
test.zip
Description: Zip archive
|