mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
objcopy ofmt=hex iterates through segments instead of sections
This commit is contained in:
parent
eeec34ccb6
commit
68ea1121fc
@ -284,10 +284,8 @@ fn emitElf(
|
||||
}
|
||||
|
||||
var hex_writer = HexWriter{ .out_file = out_file };
|
||||
for (binary_elf_output.sections.items) |section| {
|
||||
if (section.segment) |segment| {
|
||||
try hex_writer.writeSegment(segment, in_file);
|
||||
}
|
||||
for (binary_elf_output.segments.items) |segment| {
|
||||
try hex_writer.writeSegment(segment, in_file);
|
||||
}
|
||||
if (options.pad_to) |_| {
|
||||
// Padding to a size in hex files isn't applicable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user