mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-09-22 06:45:03 +00:00
Add PE section numbers
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user