strip: Split out debug section relocation into separate helper functions.