authorgravatar for 35903594+patrickwick@users.noreply.github.comPatrick Wickenhaeuser <35903594+patrickwick@users.noreply.github.com> 2024-10-04 12:38:35+02:00
committergravatar for 35903594+patrickwick@users.noreply.github.comPatrick Wickenhaeuser <35903594+patrickwick@users.noreply.github.com> 2024-10-04 15:49:50+02:00
log182c12de6989a7dd9419917a6cd0e6e804bc9d00
tree600becc4902c9d68ecb9fec544b32409d98862d9
parente1d54b6d1adb4b8e851bd949ade8cdc5fb840a9b

19009: zig objcopy: fix typo in abort messages


1 files changed, 3 insertions(+), 3 deletions(-)

lib/compiler/objcopy.zig+3-3
......@@ -865,7 +865,7 @@ fn ElfFile(comptime is_64: bool) type {
865865 // program header: list of segments
866866 const program_segments = blk: {
867867 if (@sizeOf(Elf_Phdr) != header.phentsize)
868 fatal("zig objcopy: unsuported ELF file, unexpected phentsize ({d})", .{header.phentsize});
868 fatal("zig objcopy: unsupported ELF file, unexpected phentsize ({d})", .{header.phentsize});
869869
870870 const program_header = try allocator.alloc(Elf_Phdr, header.phnum);
871871 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 {
877877 // section header
878878 const sections = blk: {
879879 if (@sizeOf(Elf_Shdr) != header.shentsize)
880 fatal("zig objcopy: unsuported ELF file, unexpected shentsize ({d})", .{header.shentsize});
880 fatal("zig objcopy: unsupported ELF file, unexpected shentsize ({d})", .{header.shentsize});
881881
882882 const section_header = try allocator.alloc(Section, header.shnum);
883883
......@@ -1126,7 +1126,7 @@ fn ElfFile(comptime is_64: bool) type {
11261126 if (section.section.sh_type == elf.SHT_NOBITS)
11271127 continue;
11281128 if (section.section.sh_offset < offset) {
1129 fatal("zig objcopy: unsuported ELF file", .{});
1129 fatal("zig objcopy: unsupported ELF file", .{});
11301130 }
11311131 offset = section.section.sh_offset;
11321132 }