Updated linker and pre-boot code