Christain,
The PFlash map for the S12G is basically the same as the S12P. Here are the +seg definitions I used in an S12P64 project with the Cosmic compiler, using the Hiwave debugger:
+seg .text -b 0x4000 -m 0x4000 -x -f 0x3f
+seg .text -b 0x38000 -o 0x8000 -m 0x4000 -x -f 0x3f
+seg .text -b 0xc000 -m 0x3f00 -n .text
+seg .const -a .text -f 0x3f
The -f option fills unused space within a segment with the SWI instruction (0x3f). The -x option allows one segment to automatically "spill over" into the next non-contiguous segment when the segment becomes full.
When using the cvdwarf utility to create an ELF/DWARF file for Hiwave, make sure to use the +page1 option on the command line. i.e. cvdwarf +page1 -o <OutputPathFileName> <InputPathFileName>.h12
Hope this helps.
Best Regards,
Gordon