Added executable flag to memory segments in TDFs

This commit is contained in:
Nav
2024-04-29 20:25:36 +01:00
parent c0836a1b6d
commit 081d1e0bcd
267 changed files with 2635 additions and 2619 deletions

View File

@@ -13,6 +13,7 @@ class MemorySegment
public ?int $size = null;
public ?int $pageSize = null;
public ?string $access = null;
public ?bool $executable = null;
/** @var MemorySegmentSection[] */
public array $sections = [];
@@ -25,7 +26,8 @@ class MemorySegment
?int $size,
?int $pageSize,
?string $access,
array $sections
array $sections,
?bool $executable
) {
$this->key = $key;
$this->name = $name;
@@ -35,6 +37,7 @@ class MemorySegment
$this->pageSize = $pageSize;
$this->access = $access;
$this->sections = $sections;
$this->executable = $executable;
}
public function getSection(string $sectionId): ?MemorySegmentSection