10.2.3.2 Allocation of Data-attributed Sections

The data section attribute specifies that a section should be allocated as initialized storage in data memory, as defined by regions kseg0_data_mem and kseg1_data_mem in the linker script. The following attributes may be used in conjunction with data and will further specify the allocation:

  • address() specifies an absolute address
  • near specifies the first 64 KB of data memory
  • align() specifies alignment of the section starting address
  • reverse() specifies alignment of the section ending address + 1