obj: insert seg ends and finally fix sym lookup