Updates to linker to support SP, FP and scratch memory linking