| ... | ... | @@ -1489,8 +1489,8 @@ fn resolveSymbolsInObject(self: *Zld, object_id: u16) !void { |
| 1489 | 1489 | .global => { |
| 1490 | 1490 | const global = &self.globals.items[resolv.where_index]; |
| 1491 | 1491 | |
| 1492 | | if (!(symbolIsWeakDef(sym) and symbolIsPext(sym)) and |
| 1493 | | !(symbolIsWeakDef(global.*) and symbolIsPext(global.*))) |
| 1492 | if (!(symbolIsWeakDef(sym) or symbolIsPext(sym)) and |
| 1493 | !(symbolIsWeakDef(global.*) or symbolIsPext(global.*))) |
| 1494 | 1494 | { |
| 1495 | 1495 | log.err("symbol '{s}' defined multiple times", .{sym_name}); |
| 1496 | 1496 | log.err(" first definition in '{s}'", .{self.objects.items[resolv.file].name.?}); |