A dozen changes; new HLEs, AV fixes, ELF loader fixes, new return codes, etc.

This commit is contained in:
ParantezTech
2026-03-14 20:38:25 +03:00
parent 028494a83b
commit 1f71c970d9
21 changed files with 2291 additions and 216 deletions
+12
View File
@@ -17,6 +17,9 @@ public sealed class SelfImage
IReadOnlyDictionary<ulong, string>? importStubs = null,
IReadOnlyDictionary<string, ulong>? runtimeSymbols = null,
IReadOnlyList<ImportedSymbolRelocation>? importedRelocations = null,
IReadOnlyList<ulong>? preInitializerFunctions = null,
IReadOnlyList<ulong>? initializerFunctions = null,
ulong initFunctionEntryPoint = 0,
ulong imageBase = 0,
ulong procParamAddress = 0)
{
@@ -30,6 +33,9 @@ public sealed class SelfImage
ImportStubs = importStubs ?? new Dictionary<ulong, string>();
RuntimeSymbols = runtimeSymbols ?? new Dictionary<string, ulong>(StringComparer.Ordinal);
ImportedRelocations = importedRelocations ?? Array.Empty<ImportedSymbolRelocation>();
PreInitializerFunctions = preInitializerFunctions ?? Array.Empty<ulong>();
InitializerFunctions = initializerFunctions ?? Array.Empty<ulong>();
InitFunctionEntryPoint = initFunctionEntryPoint;
_imageBase = imageBase;
ProcParamAddress = procParamAddress;
}
@@ -48,6 +54,12 @@ public sealed class SelfImage
public IReadOnlyList<ImportedSymbolRelocation> ImportedRelocations { get; }
public IReadOnlyList<ulong> PreInitializerFunctions { get; }
public IReadOnlyList<ulong> InitializerFunctions { get; }
public ulong InitFunctionEntryPoint { get; }
public ulong EntryPoint => ElfHeader.EntryPoint + _imageBase;
public ulong ProcParamAddress { get; }