| ... | ... | @@ -249,7 +249,7 @@ pub fn splitIntoAtoms(self: *Object, macho_file: *MachO, object_id: u32) !void { |
| 249 | 249 | const in_symtab = self.in_symtab orelse { |
| 250 | 250 | for (self.sections.items) |sect, id| { |
| 251 | 251 | if (sect.isDebug()) continue; |
| 252 | | const match = (try macho_file.getOutputSection(sect)) orelse { |
| 252 | const out_sect_id = (try macho_file.getOutputSection(sect)) orelse { |
| 253 | 253 | log.debug(" unhandled section", .{}); |
| 254 | 254 | continue; |
| 255 | 255 | }; |
| ... | ... | @@ -261,7 +261,7 @@ pub fn splitIntoAtoms(self: *Object, macho_file: *MachO, object_id: u32) !void { |
| 261 | 261 | try self.symtab.append(gpa, .{ |
| 262 | 262 | .n_strx = 0, |
| 263 | 263 | .n_type = macho.N_SECT, |
| 264 | | .n_sect = match + 1, |
| 264 | .n_sect = out_sect_id + 1, |
| 265 | 265 | .n_desc = 0, |
| 266 | 266 | .n_value = sect.addr, |
| 267 | 267 | }); |
| ... | ... | @@ -282,10 +282,10 @@ pub fn splitIntoAtoms(self: *Object, macho_file: *MachO, object_id: u32) !void { |
| 282 | 282 | code, |
| 283 | 283 | relocs, |
| 284 | 284 | &.{}, |
| 285 | | match, |
| 285 | out_sect_id, |
| 286 | 286 | sect, |
| 287 | 287 | ); |
| 288 | | try macho_file.addAtomToSection(atom, match); |
| 288 | try macho_file.addAtomToSection(atom); |
| 289 | 289 | } |
| 290 | 290 | return; |
| 291 | 291 | }; |