|
@@ -228,8 +228,7 @@ static const MCSection *getWin64EHTableSection(StringRef suffix,
|
|
|
|
|
|
return context.getCOFFSection((".xdata"+suffix).str(),
|
|
return context.getCOFFSection((".xdata"+suffix).str(),
|
|
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
|
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
|
- COFF::IMAGE_SCN_MEM_READ |
|
|
|
|
- COFF::IMAGE_SCN_MEM_WRITE,
|
|
|
|
|
|
+ COFF::IMAGE_SCN_MEM_READ,
|
|
SectionKind::getDataRel());
|
|
SectionKind::getDataRel());
|
|
}
|
|
}
|
|
|
|
|
|
@@ -239,8 +238,7 @@ static const MCSection *getWin64EHFuncTableSection(StringRef suffix,
|
|
return context.getObjectFileInfo()->getPDataSection();
|
|
return context.getObjectFileInfo()->getPDataSection();
|
|
return context.getCOFFSection((".pdata"+suffix).str(),
|
|
return context.getCOFFSection((".pdata"+suffix).str(),
|
|
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
|
COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
|
|
- COFF::IMAGE_SCN_MEM_READ |
|
|
|
|
- COFF::IMAGE_SCN_MEM_WRITE,
|
|
|
|
|
|
+ COFF::IMAGE_SCN_MEM_READ,
|
|
SectionKind::getDataRel());
|
|
SectionKind::getDataRel());
|
|
}
|
|
}
|
|
|
|
|