| ... | @@ -1666,7 +1666,7 @@ fn allocateObjects(self: *Elf) !void { | ... | @@ -1666,7 +1666,7 @@ fn allocateObjects(self: *Elf) !void { |
| 1666 | const local = self.symbol(local_index); | 1666 | const local = self.symbol(local_index); |
| 1667 | const atom_ptr = local.atom(self) orelse continue; | 1667 | const atom_ptr = local.atom(self) orelse continue; |
| 1668 | if (!atom_ptr.alive) continue; | 1668 | if (!atom_ptr.alive) continue; |
| 1669 | local.value = atom_ptr.value; | 1669 | local.value += atom_ptr.value; |
| 1670 | } | 1670 | } |
| 1671 | | 1671 | |
| 1672 | for (object.globals()) |global_index| { | 1672 | for (object.globals()) |global_index| { |
| ... | @@ -1674,7 +1674,7 @@ fn allocateObjects(self: *Elf) !void { | ... | @@ -1674,7 +1674,7 @@ fn allocateObjects(self: *Elf) !void { |
| 1674 | const atom_ptr = global.atom(self) orelse continue; | 1674 | const atom_ptr = global.atom(self) orelse continue; |
| 1675 | if (!atom_ptr.alive) continue; | 1675 | if (!atom_ptr.alive) continue; |
| 1676 | if (global.file_index == index) { | 1676 | if (global.file_index == index) { |
| 1677 | global.value = atom_ptr.value; | 1677 | global.value += atom_ptr.value; |
| 1678 | } | 1678 | } |
| 1679 | } | 1679 | } |
| 1680 | } | 1680 | } |