add ld script and initialization routine