Uninitialized variables is getting assigned to DATA section instead of BSS section in ARM Compiler 6.6.How to resolve this other than placing the variable in .bss.<section_name>?
Is there any other linker/Compiler options available for this?
The compiler by default puts every variable in its own section (-fdata-sections), but if you need a special named section you have the following options that I'm aware of:
The latter seems to be what you want:
// set bss section to .myRegion#pragma clang section bss=".myRegion"unsigned char myData[0x2000];// reset bss section to original#pragma clang section bss=""