// Add Section Map stream.
ArrayRef<object::coff_section> Sections = {
- (object::coff_section *)SectionTable.data(),
+ (const object::coff_section *)SectionTable.data(),
SectionTable.size() / sizeof(object::coff_section)};
std::vector<pdb::SecMapEntry> SectionMap =
pdb::DbiStreamBuilder::createSectionMap(Sections);
static ArrayRef<uint8_t> createInterp() {
// StringSaver guarantees that the returned string ends with '\0'.
StringRef S = Saver.save(Config->DynamicLinker);
- return {(uint8_t *)S.data(), S.size() + 1};
+ return {(const uint8_t *)S.data(), S.size() + 1};
}
template <class ELFT>