Matthias,
You require a set of pragma plus declspec.
I've created a section on my linker as follows:
.myrom_section:
{
*(.myrom)
. = ALIGN (0x4);
} > myrom
Then, on the code, use the pragma "define_Section" and the declspec "section" to do the job:
#pragma define_section myrom_section ".myrom" far_abs RX
__declspec(section "myrom_section")
const unsigned long gu32Test = 0x1234;
Compiled and got the expected placement on my MAP file:
# .myrom_section
00000800 00000004 .myrom gu32Test (main.obj)
You can refer to the app note 4498, which is on your CW installation path (10.2 or 10.3):
{CW path}\MCU\Help\PDF