Problem with objcopy

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

Hello, all.

Recently I made a small change in the following code:
class cFoo {
	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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list