| ... | ... | @@ -1065,7 +1065,13 @@ pub const Zld = struct { |
| 1065 | 1065 | assert(offsets.items.len > 0); |
| 1066 | 1066 | |
| 1067 | 1067 | const object_id = @intCast(u16, self.objects.items.len); |
| 1068 | | const object = try archive.parseObject(gpa, cpu_arch, offsets.items[0]); |
| 1068 | const object = archive.parseObject(gpa, cpu_arch, offsets.items[0]) catch |e| switch (e) { |
| 1069 | error.MismatchedCpuArchitecture => { |
| 1070 | log.err("CPU architecture mismatch found in {s}", .{archive.name}); |
| 1071 | return e; |
| 1072 | }, |
| 1073 | else => return e, |
| 1074 | }; |
| 1069 | 1075 | try self.objects.append(gpa, object); |
| 1070 | 1076 | try self.resolveSymbolsInObject(object_id, resolver); |
| 1071 | 1077 | |