| ... | @@ -284,10 +284,8 @@ fn emitElf( | ... | @@ -284,10 +284,8 @@ fn emitElf( |
| 284 | } | 284 | } |
| 285 | | 285 | |
| 286 | var hex_writer = HexWriter{ .out_file = out_file }; | 286 | var hex_writer = HexWriter{ .out_file = out_file }; |
| 287 | for (binary_elf_output.sections.items) |section| { | 287 | for (binary_elf_output.segments.items) |segment| { |
| 288 | if (section.segment) |segment| { | 288 | try hex_writer.writeSegment(segment, in_file); |
| 289 | try hex_writer.writeSegment(segment, in_file); | | |
| 290 | } | | |
| 291 | } | 289 | } |
| 292 | if (options.pad_to) |_| { | 290 | if (options.pad_to) |_| { |
| 293 | // Padding to a size in hex files isn't applicable | 291 | // Padding to a size in hex files isn't applicable |