Problem with objcopy

Leon Pollak leonp at plris.com
Thu Jun 25 11:26:57 UTC 2009


Hello, all.

Recently I made a small change in the following code:
class cFoo {
protected:
	uchar	DataIn[MAX_DATA_LEN], DataOut[MAX_DATA_LEN];
..............
};


I changed MAX_DATA_LEN from 1000 to 300000.


This resulted in 300000 growth of the BIN file which I produce by command:
powerpc-rtems-objcopy -j .text -j .data -O binary app.elf app.bin

Looking into the map file I see that the real addition of 300000 bytes resides 
in the .bss section, which seems to me correct.
So, why the size of binary file depends on .bss section size?!?!

I tried to play with -j and -R parameters, but all imaginable combinations 
gave nothing - the output file size was exactly the same.


Many thanks ahead for any help.
-- 
Leon 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20090625/87198d2a/attachment.html>


More information about the users mailing list