23.3.4.17 .sdata Section
This section collects the small initialized data from all of the application’s input
files. This section is assigned to the data memory region
(kseg1_data_mem
) with a load address located in the program memory
region (kseg0_program_mem
). Symbols are defined to represent the
virtual begin (_sdata_begin
) and end (_sdata_end
)
addresses of this section.
/*
* We want the small data sections together, so
* single-instruction offsets can access them all, and
* initialized data all before uninitialized, so
* we can shorten the on-disk segment size.
*/
.sdata :
{
_sdata_begin = . ;
*(.sdata .sdata.* .gnu.linkonce.s.*)
_sdata_end = . ;
} > kseg1_data_mem AT> kseg0_program_mem