-sdata2threshold

Limits the size of the largest objects in the small constant data section.

Syntax
  -sdata2[threshold] 
  size
  
  
Remarks

The size value specifies the maximum size, in bytes, of all objects in the small constant data section (typically named ".sdata2"). The linker places constant objects that are greater than this size in the constant data section (typically named ".rodata") instead.

You can override this option for a variable in your source code like this

  __declspec(section ".sdata2") extern int bigobj[] =  
  { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };

  

The default for size is 8.

This is a linker option.