Add PE section numbers

This commit is contained in:
Matt Nadareski
2022-11-05 15:16:38 -07:00
parent aff3745859
commit 7208288c00
2 changed files with 25 additions and 1 deletions

View File

@@ -1834,6 +1834,30 @@ namespace BurnOutSharp.Models.PortableExecutable
IMAGE_SCN_MEM_WRITE = 0x80000000,
}
public enum SectionNumber
{
/// <summary>
/// The symbol record is not yet assigned a section. A value of
/// zero indicates that a reference to an external symbol is
/// defined elsewhere. A value of non-zero is a common symbol
/// with a size that is specified by the value.
/// </summary>
IMAGE_SYM_UNDEFINED = 0,
/// <summary>
/// The symbol has an absolute (non-relocatable) value and
/// is not an address.
/// </summary>
IMAGE_SYM_ABSOLUTE = -1,
/// <summary>
/// The symbol provides general type or debugging information
/// but does not correspond to a section. Microsoft tools use
/// this setting along with .file records (storage class FILE).
/// </summary>
IMAGE_SYM_DEBUG = -2,
}
public enum StorageClass : byte
{
/// <summary>

View File

@@ -41,6 +41,6 @@ namespace BurnOutSharp.Models.PortableExecutable
/// </summary>
public COFFSymbolTableEntry[] COFFSymbolTable { get; set; }
// TODO: Left off at https://learn.microsoft.com/en-us/windows/win32/debug/pe-format#section-number-values
// TODO: Left off at "Auxiliary Symbol Records"
}
}