| ... | ... | @@ -1180,6 +1180,7 @@ pub const Reloc = extern struct { |
| 1180 | 1180 | IA64: std.coff.IMAGE.REL.IA64, |
| 1181 | 1181 | MIPS: std.coff.IMAGE.REL.MIPS, |
| 1182 | 1182 | M32R: std.coff.IMAGE.REL.M32R, |
| 1183 | u16: u16, |
| 1183 | 1184 | }; |
| 1184 | 1185 | |
| 1185 | 1186 | pub const Index = enum(u32) { |
| ... | ... | @@ -3787,7 +3788,7 @@ fn addRelocAssumeCapacity( |
| 3787 | 3788 | |
| 3788 | 3789 | // applyLocationRelocs updates `virtual_address` |
| 3789 | 3790 | // flushSymbolTableIndex updates `symbol_table_index` |
| 3790 | | coff.targetStore(&entry.type, @bitCast(@"type")); |
| 3791 | coff.targetStore(&entry.type, @"type".u16); |
| 3791 | 3792 | |
| 3792 | 3793 | break :sri sri; |
| 3793 | 3794 | }, |
| ... | ... | @@ -4931,7 +4932,7 @@ fn loadObject( |
| 4931 | 4932 | reloc.virtual_address - section.header.virtual_address, |
| 4932 | 4933 | symbol.si, |
| 4933 | 4934 | .pending, |
| 4934 | | @bitCast(reloc.type), |
| 4935 | .{ .u16 = reloc.type }, |
| 4935 | 4936 | ); |
| 4936 | 4937 | } |
| 4937 | 4938 | } |