I am using CCS V5.2 for am335x development boards. I do not want to put the .bss section to .bin file. When i used the ADS1.2 to compile my project , it was about 3.5MB of the bin file. But when i change the project to CCS , it's bin file comes to 47.2MB. So, i check the .map file , and find that the .bss take over about 43.8MB. The following is my map:
and my cmd file is :
MEMORY
{
DDR_MEM: o = 0x80400000 l = 0x7FFFFFF /* 128MB external DDR Bank 0 */
}
SECTIONS
{
.init : {
init.obj(.text)
} load > 0x80400000
.text : > DDR_MEM /* CODE */
.data : > DDR_MEM /* INITIALIZED GLOBAL AND STATIC VARIABLES */
/* UNINITIALIZED OR ZERO INITIALIZED GLOBAL & STATIC VARIABLES */
.bss : > DDR_MEM
RUN_START(bss_start)
RUN_END(bss_end)
.cio : > DDR_MEM
.const : > DDR_MEM
.switch : > DDR_MEM
.far : > DDR_MEM
.args : > DDR_MEM
.ppinfo : > DDR_MEM
.ppdata : > DDR_MEM
/* TI-ABI or COFF sections */
/*.pinit : > DDR_MEM*/
/*.cinit : > DDR_MEM*/
/* EABI sections */
/*.binit : > DDR_MEM*/
/*.cinit : > DDR_MEM*/
.init_array : > DDR_MEM /* contains global constructor tables */
.neardata : > DDR_MEM
.fardata : > DDR_MEM
.rodata : > DDR_MEM
.c6xabi.exidx : > DDR_MEM
.c6xabi.extab : > DDR_MEM
.sysmem : > DDR_MEM /* heap */
.stack : > DDR_MEM /* SOFTWARE SYSTEM STACK 0x87FF7FFF */
}
how can i cut off the .bss from my bin file ?