Here is the work around. I tested it with 2 of the projects.
1.) Modify the linker command file to add this:
_ROMCodeToCopy = ___ROM_AT + SIZEOF(.app_data);
.copyToRAM: AT(_ROMCodeToCopy) {
. = ALIGN (0x4);
__START_COPYTORAM = .;
*(CopyToRAM)
__END_COPYTORAM = .;
} >> m_data
2.) You have to add some pragmas around code you want to execute from ram (as code warrior does not support the __ramfunc keyword like IAR). The set_sys_dividers in the MCG.c file needs to run from ram.
#pragma section CopyToRAM begin
void set_sys_dividers(uint32 outdiv1, uint32 outdiv2, uint32 outdiv3, uint32 outdiv4)
{
..
...
..
}
#pragma section CopyToRAM end