Move base relocation to new namespace

This commit is contained in:
Matt Nadareski
2025-09-22 11:14:27 -04:00
parent b40f84dd4b
commit b5ac9304a4
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
namespace SabreTools.Models.PortableExecutable
namespace SabreTools.Models.PortableExecutable.BaseRelocation
{
/// <summary>
/// The base relocation table contains entries for all base relocations in
@@ -18,7 +18,7 @@
/// relocations do not have to be applied.
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/debug/pe-format"/>
public sealed class BaseRelocationBlock
public sealed class Block
{
/// <summary>
/// The image base plus the page RVA is added to each offset to create
@@ -46,6 +46,6 @@
/// in the Page RVA field for the block. This offset
/// specifies where the base relocation is to be applied.
/// </summary>
public BaseRelocationTypeOffsetFieldEntry[]? TypeOffsetFieldEntries { get; set; }
public TypeOffsetFieldEntry[]? TypeOffsetFieldEntries { get; set; }
}
}

View File

@@ -1,10 +1,10 @@
namespace SabreTools.Models.PortableExecutable
namespace SabreTools.Models.PortableExecutable.BaseRelocation
{
/// <summary>
/// Type or Offset field entry is a WORD (2 bytes).
/// </summary>
/// <see href="https://learn.microsoft.com/en-us/windows/win32/debug/pe-format"/>
public sealed class BaseRelocationTypeOffsetFieldEntry
public sealed class TypeOffsetFieldEntry
{
/// <summary>
/// Stored in the high 4 bits of the WORD, a value that indicates the type

View File

@@ -71,7 +71,7 @@ namespace SabreTools.Models.PortableExecutable
/// <summary>
/// Base relocation table (.reloc)
/// </summary>
public BaseRelocationBlock[]? BaseRelocationTable { get; set; }
public BaseRelocation.Block[]? BaseRelocationTable { get; set; }
/// <summary>
/// Debug table (.debug*)