Improve linker script and relocate rw data to ram when loaded in flash.