[coldfire-gnu-discuss] The different size is gotten from m68k-elf-nm and m68k-elf-readelf

Ha Luong haluongvn at gmail.com
Tue Mar 25 10:16:10 UTC 2008


Dear Daniel Jacobowitz,

Could you please told me the file size and mem size mean?

Thanks,
Ha Luong


On 3/24/08, Daniel Jacobowitz <dan at codesourcery.com> wrote:
>
> On Mon, Mar 24, 2008 at 02:32:23PM +0700, Ha Luong wrote:
> > 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"
>
> The total size of all sections may be larger than the total size of
> all symbols.  There are structures in your application, like the
> symbol table, which do not have an associated symbol.
>
> If you just want the memory requirements of your application, I
> recommend using m68k-elf-size or m68k-elf-readelf -l (lowercase
> L).
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20080325/00a4ea9e/attachment.html>


More information about the coldfire-gnu-discuss mailing list