zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 182c12de6989a7dd9419917a6cd0e6e804bc9d00 (tree)
parent e1d54b6d1adb4b8e851bd949ade8cdc5fb840a9b
Author: Patrick Wickenhaeuser <35903594+patrickwick@users.noreply.github.com>
Date:   Fri,  4 Oct 2024 12:38:35 +0200

19009: zig objcopy: fix typo in abort messages

Diffstat:
Mlib/compiler/objcopy.zig | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/compiler/objcopy.zig b/lib/compiler/objcopy.zig @@ -865,7 +865,7 @@ fn ElfFile(comptime is_64: bool) type { // program header: list of segments const program_segments = blk: { if (@sizeOf(Elf_Phdr) != header.phentsize) - fatal("zig objcopy: unsuported ELF file, unexpected phentsize ({d})", .{header.phentsize}); + fatal("zig objcopy: unsupported ELF file, unexpected phentsize ({d})", .{header.phentsize}); const program_header = try allocator.alloc(Elf_Phdr, header.phnum); const bytes_read = try in_file.preadAll(std.mem.sliceAsBytes(program_header), header.phoff); @@ -877,7 +877,7 @@ fn ElfFile(comptime is_64: bool) type { // section header const sections = blk: { if (@sizeOf(Elf_Shdr) != header.shentsize) - fatal("zig objcopy: unsuported ELF file, unexpected shentsize ({d})", .{header.shentsize}); + fatal("zig objcopy: unsupported ELF file, unexpected shentsize ({d})", .{header.shentsize}); const section_header = try allocator.alloc(Section, header.shnum); @@ -1126,7 +1126,7 @@ fn ElfFile(comptime is_64: bool) type { if (section.section.sh_type == elf.SHT_NOBITS) continue; if (section.section.sh_offset < offset) { - fatal("zig objcopy: unsuported ELF file", .{}); + fatal("zig objcopy: unsupported ELF file", .{}); } offset = section.section.sh_offset; }