pgo

Linker warning message

Discussion created by pgo on Aug 26, 2011
Latest reply on Aug 29, 2011 by RICK BOURGEOIS

Dear All,

 

I'm trying to align an object at a 512 byte boundary using the following  (fragment) in the linker file:

  .usbram :
  {
    . = ALIGN (512);
    *(.bdts)
    . = ALIGN (0x4);
  } >> userram
  

 

This appears to work as I expected it to but produces the following warning message:

 

All segments to userram have to begin at address aligned to 512 Please add ".=ALIGN(512);" before every "} >> userram"

Is this message correct or spurious as I hope?

 

Using CW v10.1 on Win32 with a MCF51JM64 target device if thats relevent.

 

 bye

 

Outcomes