This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: investigating RAM usage with nm / diff. between "nm" and "size" ?


-------------------
> > Using, the nm command to list symbols in the program, the last
> > symbol in the .bss section occurs at address 0xd0fe8. This also
> > matches the last address in the section reported by the linker
map.
> >
> > The .bss section starts at 0xd0000, so that should mean my program
> > uses 4072 bytes of RAM (?).
> >
> > However, my concern is that when I use the size command, it
reports
> > only 3336 bytes in the .bss section.
> >
> > Do you know why these differ?
> 
> Which version of the tools are you using ?  Possibly it is an old
> version with a bug in it.
> 
> A way to reproduce the problem would be very helpful too.  Maybe you
> could send a *small* object file which demonstrates the problem ?
> 

I have binutils 2.13.1. This is the arm-elf-*** version of the
toolchain (for ARM targets / Cygwin hosts).
This is pre-built and distributed from ecoscentric.com.
Unless you have that you may find it difficult to reproduce the
problem. Would you still like me to send the object file (it's 13kB
once zipped)?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]