| ... | ... | @@ -238,7 +238,7 @@ pub fn flushModule(self: *ZigObject, elf_file: *Elf, tid: Zcu.PerThread.Id) !voi |
| 238 | 238 | unit.header_len + unit.getEntry(source_entry).off |
| 239 | 239 | else |
| 240 | 240 | 0); |
| 241 | | const r_addend: i64 = @intCast(reloc.target_off + (if (reloc.target_entry.unwrap()) |target_entry| |
| 241 | const r_addend: i64 = @intCast(target_unit.off + reloc.target_off + (if (reloc.target_entry.unwrap()) |target_entry| |
| 242 | 242 | target_unit.header_len + target_unit.getEntry(target_entry).assertNonEmpty(unit, sect, dwarf).off |
| 243 | 243 | else |
| 244 | 244 | 0)); |