| ... | @@ -1022,7 +1022,7 @@ pub fn format( | ... | @@ -1022,7 +1022,7 @@ pub fn format( |
| 1022 | _ = unused_fmt_string; | 1022 | _ = unused_fmt_string; |
| 1023 | _ = options; | 1023 | _ = options; |
| 1024 | _ = writer; | 1024 | _ = writer; |
| 1025 | @compileError("do not format symbols directly"); | 1025 | @compileError("do not format Atom directly"); |
| 1026 | } | 1026 | } |
| 1027 | | 1027 | |
| 1028 | pub fn fmt(atom: Atom, elf_file: *Elf) std.fmt.Formatter(format2) { | 1028 | pub fn fmt(atom: Atom, elf_file: *Elf) std.fmt.Formatter(format2) { |
| ... | @@ -1048,8 +1048,8 @@ fn format2( | ... | @@ -1048,8 +1048,8 @@ fn format2( |
| 1048 | const atom = ctx.atom; | 1048 | const atom = ctx.atom; |
| 1049 | const elf_file = ctx.elf_file; | 1049 | const elf_file = ctx.elf_file; |
| 1050 | try writer.print("atom({d}) : {s} : @{x} : shdr({d}) : align({x}) : size({x})", .{ | 1050 | try writer.print("atom({d}) : {s} : @{x} : shdr({d}) : align({x}) : size({x})", .{ |
| 1051 | atom.atom_index, atom.name(elf_file), atom.address(elf_file), | 1051 | atom.atom_index, atom.name(elf_file), atom.address(elf_file), |
| 1052 | atom.output_section_index, atom.alignment, atom.size, | 1052 | atom.output_section_index, atom.alignment.toByteUnits() orelse 0, atom.size, |
| 1053 | }); | 1053 | }); |
| 1054 | if (atom.fdes(elf_file).len > 0) { | 1054 | if (atom.fdes(elf_file).len > 0) { |
| 1055 | try writer.writeAll(" : fdes{ "); | 1055 | try writer.writeAll(" : fdes{ "); |