mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-10 13:52:16 +00:00
23 lines
618 B
C#
23 lines
618 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace BinaryObjectScanner.Models.MSDOS
|
|
{
|
|
/// <summary>
|
|
/// Each pointer in the relocation table looks as such
|
|
/// </summary>
|
|
/// <see href="https://wiki.osdev.org/MZ"/>
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public sealed class RelocationEntry
|
|
{
|
|
/// <summary>
|
|
/// Offset of the relocation within provided segment.
|
|
/// </summary>
|
|
public ushort Offset;
|
|
|
|
/// <summary>
|
|
/// Segment of the relocation, relative to the load segment address.
|
|
/// </summary>
|
|
public ushort Segment;
|
|
}
|
|
}
|