| ... | ... | @@ -4307,7 +4307,6 @@ fn updateComdatGroupsSizes(self: *Elf) void { |
| 4307 | 4307 | shdr.sh_link = self.symtab_section_index.?; |
| 4308 | 4308 | |
| 4309 | 4309 | const sym = self.symbol(cg.symbol(self)); |
| 4310 | | std.debug.print("{s}\n", .{sym.name(self)}); |
| 4311 | 4310 | shdr.sh_info = sym.outputSymtabIndex(self) orelse |
| 4312 | 4311 | self.sectionSymbolOutputSymtabIndex(sym.outputShndx().?); |
| 4313 | 4312 | } |
| ... | ... | @@ -6131,7 +6130,7 @@ fn formatShdr( |
| 6131 | 6130 | }); |
| 6132 | 6131 | } |
| 6133 | 6132 | |
| 6134 | | fn fmtShdrFlags(sh_flags: u64) std.fmt.Formatter(formatShdrFlags) { |
| 6133 | pub fn fmtShdrFlags(sh_flags: u64) std.fmt.Formatter(formatShdrFlags) { |
| 6135 | 6134 | return .{ .data = sh_flags }; |
| 6136 | 6135 | } |
| 6137 | 6136 | |
| ... | ... | @@ -6288,12 +6287,12 @@ fn fmtDumpState( |
| 6288 | 6287 | |
| 6289 | 6288 | try writer.writeAll("Output COMDAT groups\n"); |
| 6290 | 6289 | for (self.comdat_group_sections.items) |cg| { |
| 6291 | | try writer.print("shdr({d}) : COMDAT({d})\n", .{ cg.shndx, cg.cg_index }); |
| 6290 | try writer.print(" shdr({d}) : COMDAT({d})\n", .{ cg.shndx, cg.cg_index }); |
| 6292 | 6291 | } |
| 6293 | 6292 | |
| 6294 | 6293 | try writer.writeAll("\nOutput shdrs\n"); |
| 6295 | 6294 | for (self.shdrs.items, 0..) |shdr, shndx| { |
| 6296 | | try writer.print("shdr({d}) : phdr({?d}) : {}\n", .{ |
| 6295 | try writer.print(" shdr({d}) : phdr({?d}) : {}\n", .{ |
| 6297 | 6296 | shndx, |
| 6298 | 6297 | self.phdr_to_shdr_table.get(@intCast(shndx)), |
| 6299 | 6298 | self.fmtShdr(shdr), |
| ... | ... | @@ -6301,7 +6300,7 @@ fn fmtDumpState( |
| 6301 | 6300 | } |
| 6302 | 6301 | try writer.writeAll("\nOutput phdrs\n"); |
| 6303 | 6302 | for (self.phdrs.items, 0..) |phdr, phndx| { |
| 6304 | | try writer.print("phdr{d} : {}\n", .{ phndx, self.fmtPhdr(phdr) }); |
| 6303 | try writer.print(" phdr{d} : {}\n", .{ phndx, self.fmtPhdr(phdr) }); |
| 6305 | 6304 | } |
| 6306 | 6305 | } |
| 6307 | 6306 | |