another hle implements, especially for mutex calls

This commit is contained in:
ParantezTech
2026-03-12 18:01:42 +03:00
parent 73ae502e09
commit 028494a83b
12 changed files with 1133 additions and 252 deletions
+4
View File
@@ -16,6 +16,7 @@ public sealed class SelfImage
IReadOnlyList<VirtualMemoryRegion> mappedRegions,
IReadOnlyDictionary<ulong, string>? importStubs = null,
IReadOnlyDictionary<string, ulong>? runtimeSymbols = null,
IReadOnlyList<ImportedSymbolRelocation>? importedRelocations = null,
ulong imageBase = 0,
ulong procParamAddress = 0)
{
@@ -28,6 +29,7 @@ public sealed class SelfImage
MappedRegions = mappedRegions;
ImportStubs = importStubs ?? new Dictionary<ulong, string>();
RuntimeSymbols = runtimeSymbols ?? new Dictionary<string, ulong>(StringComparer.Ordinal);
ImportedRelocations = importedRelocations ?? Array.Empty<ImportedSymbolRelocation>();
_imageBase = imageBase;
ProcParamAddress = procParamAddress;
}
@@ -44,6 +46,8 @@ public sealed class SelfImage
public IReadOnlyDictionary<string, ulong> RuntimeSymbols { get; }
public IReadOnlyList<ImportedSymbolRelocation> ImportedRelocations { get; }
public ulong EntryPoint => ElfHeader.EntryPoint + _imageBase;
public ulong ProcParamAddress { get; }