| ... | ... | @@ -175,6 +175,8 @@ pub const Subsystem = enum(u16) { |
| 175 | 175 | |
| 176 | 176 | /// Windows boot application |
| 177 | 177 | WINDOWS_BOOT_APPLICATION = 16, |
| 178 | |
| 179 | _, |
| 178 | 180 | }; |
| 179 | 181 | |
| 180 | 182 | pub const OptionalHeader = extern struct { |
| ... | ... | @@ -300,6 +302,8 @@ pub const DirectoryEntry = enum(u16) { |
| 300 | 302 | |
| 301 | 303 | /// COM Runtime descriptor |
| 302 | 304 | COM_DESCRIPTOR = 14, |
| 305 | |
| 306 | _, |
| 303 | 307 | }; |
| 304 | 308 | |
| 305 | 309 | pub const ImageDataDirectory = extern struct { |
| ... | ... | @@ -383,6 +387,8 @@ pub const BaseRelocationType = enum(u4) { |
| 383 | 387 | |
| 384 | 388 | /// The base relocation applies the difference to the 64-bit field at offset. |
| 385 | 389 | DIR64 = 10, |
| 390 | |
| 391 | _, |
| 386 | 392 | }; |
| 387 | 393 | |
| 388 | 394 | pub const DebugDirectoryEntry = extern struct { |
| ... | ... | @@ -414,6 +420,8 @@ pub const DebugType = enum(u32) { |
| 414 | 420 | MPX = 15, |
| 415 | 421 | REPRO = 16, |
| 416 | 422 | EX_DLLCHARACTERISTICS = 20, |
| 423 | |
| 424 | _, |
| 417 | 425 | }; |
| 418 | 426 | |
| 419 | 427 | pub const ImportDirectoryEntry = extern struct { |
| ... | ... | @@ -736,6 +744,8 @@ pub const BaseType = enum(u8) { |
| 736 | 744 | |
| 737 | 745 | /// An unsigned 4-byte integer |
| 738 | 746 | DWORD = 15, |
| 747 | |
| 748 | _, |
| 739 | 749 | }; |
| 740 | 750 | |
| 741 | 751 | pub const ComplexType = enum(u8) { |
| ... | ... | @@ -750,6 +760,8 @@ pub const ComplexType = enum(u8) { |
| 750 | 760 | |
| 751 | 761 | /// The symbol is an array of base type. |
| 752 | 762 | ARRAY = 48, |
| 763 | |
| 764 | _, |
| 753 | 765 | }; |
| 754 | 766 | |
| 755 | 767 | pub const StorageClass = enum(u8) { |
| ... | ... | @@ -843,6 +855,8 @@ pub const StorageClass = enum(u8) { |
| 843 | 855 | /// A CLR token symbol. The name is an ASCII string that consists of the hexadecimal value of the token. |
| 844 | 856 | /// For more information, see CLR Token Definition (Object Only). |
| 845 | 857 | CLR_TOKEN = 107, |
| 858 | |
| 859 | _, |
| 846 | 860 | }; |
| 847 | 861 | |
| 848 | 862 | pub const FunctionDefinition = struct { |
| ... | ... | @@ -915,6 +929,7 @@ pub const WeakExternalFlag = enum(u32) { |
| 915 | 929 | SEARCH_LIBRARY = 2, |
| 916 | 930 | SEARCH_ALIAS = 3, |
| 917 | 931 | ANTI_DEPENDENCY = 4, |
| 932 | _, |
| 918 | 933 | }; |
| 919 | 934 | |
| 920 | 935 | pub const ComdatSelection = enum(u8) { |
| ... | ... | @@ -947,6 +962,8 @@ pub const ComdatSelection = enum(u8) { |
| 947 | 962 | /// The linker chooses the largest definition from among all of the definitions for this symbol. |
| 948 | 963 | /// If multiple definitions have this size, the choice between them is arbitrary. |
| 949 | 964 | LARGEST = 6, |
| 965 | |
| 966 | _, |
| 950 | 967 | }; |
| 951 | 968 | |
| 952 | 969 | pub const DebugInfoDefinition = struct { |
| ... | ... | @@ -1016,6 +1033,8 @@ pub const MachineType = enum(u16) { |
| 1016 | 1033 | /// MIPS little-endian WCE v2 |
| 1017 | 1034 | WCEMIPSV2 = 0x169, |
| 1018 | 1035 | |
| 1036 | _, |
| 1037 | |
| 1019 | 1038 | pub fn fromTargetCpuArch(arch: std.Target.Cpu.Arch) MachineType { |
| 1020 | 1039 | return switch (arch) { |
| 1021 | 1040 | .arm => .ARM, |