Finish AP init code. Add ld script