Fix errors in objfile.