| ... | @@ -1150,7 +1150,7 @@ pub fn readElfDebugInfo( | ... | @@ -1150,7 +1150,7 @@ pub fn readElfDebugInfo( |
| 1150 | }; | 1150 | }; |
| 1151 | | 1151 | |
| 1152 | const mapped_mem = try mapWholeFile(elf_file); | 1152 | const mapped_mem = try mapWholeFile(elf_file); |
| 1153 | if (expected_crc) |crc| if (crc != std.hash.crc.Crc32SmallWithPoly(.IEEE).hash(mapped_mem)) return error.InvalidDebugInfo; | 1153 | if (expected_crc) |crc| if (crc != std.hash.crc.Crc32.hash(mapped_mem)) return error.InvalidDebugInfo; |
| 1154 | | 1154 | |
| 1155 | const hdr: *const elf.Ehdr = @ptrCast(&mapped_mem[0]); | 1155 | const hdr: *const elf.Ehdr = @ptrCast(&mapped_mem[0]); |
| 1156 | if (!mem.eql(u8, hdr.e_ident[0..4], elf.MAGIC)) return error.InvalidElfMagic; | 1156 | if (!mem.eql(u8, hdr.e_ident[0..4], elf.MAGIC)) return error.InvalidElfMagic; |