This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EABI, 4.6.1 linker and --zero_init=off

 

If --zero_init=off and .data section is placed as input section into output section with NOLOAD flag then linker does not generate .cinit tables.
 
 .app_user_ram: (NOLOAD)
 {
....
     *(.bss)
     *(.data)
....
 } > APP_RAM (HIGH)
 
Removing NOLAD from .app_user_ram creates partial .cinit records where other customer initialized sections (#pragma DATA_SECTION()) in different output sections are not associated with initialization records.

With --zero_int=on no problems are observed.

Can someone help or explain this behavior?

Thanks,
Eugene