replaced linker script and startup code