This allows clients to modify the memory protection settings on sections via
jitlink passes. This can be used to, for example, override the default settings
on text pages and make them Read/Write/Executable under the JIT.
/// Returns the protection flags for this section.
sys::Memory::ProtectionFlags getProtectionFlags() const { return Prot; }
+ /// Set the protection flags for this section.
+ void setProtectionFlags(sys::Memory::ProtectionFlags Prot) {
+ this->Prot = Prot;
+ }
+
/// Returns the ordinal for this section.
SectionOrdinal getOrdinal() const { return SecOrdinal; }