We use SectionList::ReplaceSection to check for some sections in the main object file and in separate debug info files. It was relying on section IDs being consistent between different individual section lists in different object files which does not work. I fixed this by not using a section ID when replacing a section, but using the section shared pointer so there can be no errors.