If you use the default New Project wizard settings, the Internal ROM target links all constants into the .rodata, the .rdata and the .sdata2 sections for you. The following code snippets show how this is done.
Snippet of .lcf file :
----------------------
MEMORY
{
boot_flash: org = 0x00000000, len = 0x00010000
interrupts_flash: org = 0x00010000, len = 0x00010000
internal_flash: org = 0x00020000, len = 0x00060000
internal_ram: org = 0x40000000, len = 0x00007C00
stack_ram: org = 0x40007C00, len = 0x0400
}
...
GROUP : {
.intc_sw_isr_vector_table ALIGN (2048) : {} /* For INTC in SW Vector Mode */
.text_vle (VLECODE) ALIGN(0x1000): {
*(.text)
*(.text_vle)
*(.fini)
*(.eini)
}
.init : {}
.init_vle (VLECODE) : {
*(.init)
*(.init_vle)
}
.ctors : {}
.dtors : {}
.rodata (CONST) : {
*(.rdata)
*(.rodata)
}
.sdata2 : {}
extab : {}
extabindex : {}
} > internal_flash