| ... | ... | @@ -485,7 +485,7 @@ fn populateMissingMetadata(self: *Coff) !void { |
| 485 | 485 | try self.locals.append(gpa, .{ |
| 486 | 486 | .name = [_]u8{0} ** 8, |
| 487 | 487 | .value = 0, |
| 488 | | .section_number = @intToEnum(coff.SectionNumber, 0), |
| 488 | .section_number = .UNDEFINED, |
| 489 | 489 | .@"type" = .{ .base_type = .NULL, .complex_type = .NULL }, |
| 490 | 490 | .storage_class = .NULL, |
| 491 | 491 | .number_of_aux_symbols = 0, |
| ... | ... | @@ -988,7 +988,7 @@ pub fn lowerUnnamedConst(self: *Coff, tv: TypedValue, decl_index: Module.Decl.In |
| 988 | 988 | }; |
| 989 | 989 | defer gpa.free(sym_name); |
| 990 | 990 | try self.setSymbolName(sym, sym_name); |
| 991 | | sym.section_number = @intToEnum(coff.SectionNumber, self.rdata_section_index.?); |
| 991 | sym.section_number = @intToEnum(coff.SectionNumber, self.rdata_section_index.? + 1); |
| 992 | 992 | |
| 993 | 993 | try self.managed_atoms.append(gpa, atom); |
| 994 | 994 | try self.atom_by_index_table.putNoClobber(gpa, atom.sym_index, atom); |
| ... | ... | @@ -1334,7 +1334,7 @@ pub fn deleteExport(self: *Coff, exp: Export) void { |
| 1334 | 1334 | sym.* = .{ |
| 1335 | 1335 | .name = [_]u8{0} ** 8, |
| 1336 | 1336 | .value = 0, |
| 1337 | | .section_number = @intToEnum(coff.SectionNumber, 0), |
| 1337 | .section_number = .UNDEFINED, |
| 1338 | 1338 | .@"type" = .{ .base_type = .NULL, .complex_type = .NULL }, |
| 1339 | 1339 | .storage_class = .NULL, |
| 1340 | 1340 | .number_of_aux_symbols = 0, |