0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/compiler/objcopy.zig
xtex b90b080836 objcopy: call seekTo after setLength
Previously, --pad-to is implemented using
File.setLength which does a ftruncate syscall
immediately. However, for positional writers,
setLength will be called again in out.end(),
truncating the file back to out.pos bytes.

Therefore, seekTo should be called after setLength
to update out.pos.
2026-10-09 23:55:16 +02:00

822 lines
31 KiB