Modify kernel file linking methord.