ramesh ch

Initialization of BSS section to zero in the Linker command file

Discussion created by ramesh ch on Aug 13, 2007
Latest reply on Aug 13, 2007 by Alexandre Kremer
Hi,
I am working with MCF5282 Controller.
The problem is :
 
  I need to initialize the total bss section to zero(default  data)in the Linker command file
 I used the FILL attribute for output section but it is giving error.
  Section
  {
     data :
     {
      *(.bss)
      *(COMMON)
 
     }> Data_Memory = 0x0000
 }
  
  How to use that?
 can anybody give the correct syntax?
 

Outcomes