[coldfire-gnu-discuss] GNU Linker

David Brown david at westcontrol.com
Wed Jan 17 10:38:06 UTC 2007


Mats Blide wrote:
> 
> Hi,
> 
> I don't know if this is the right forum, but I have notised that it is 
> fairly active and gives quick response. So I give it a try. I'am still a 
> GNU newbie.
> 
> I'am in the process off sliming a FreeRTOS/lwIP configuration to fitt 
> into my limited 32K RAM. I'am used to linkers that can produce a map 
> file where I can se the size of every individual object, but I'am not 
> able to figure out how to do this with GCC. As it is now it only shows 
> the RAM size used by each objectfile as a whole.
> 
> Any help appresiated highly apreceated!
> 
> Rgds /Mats
> 

You want something like:
	-Wl,-Map=program.map

and possibly
	-Wl,--cref


in the command line for gcc when doing the linking.

Running m68k-elf-size on the elf file will also give you the sizes of 
the sections, and objdump can give more details.



More information about the coldfire-gnu-discuss mailing list