| ... | ... | @@ -983,7 +983,7 @@ const x86_64 = struct { |
| 983 | 983 | } |
| 984 | 984 | }, |
| 985 | 985 | |
| 986 | | .PC32 => { |
| 986 | .PC32, .PC64 => { |
| 987 | 987 | try atom.scanReloc(symbol, rel, pcRelocAction(symbol, elf_file), elf_file); |
| 988 | 988 | }, |
| 989 | 989 | |
| ... | ... | @@ -1083,6 +1083,7 @@ const x86_64 = struct { |
| 1083 | 1083 | |
| 1084 | 1084 | .PLT32 => mem.writeInt(i32, code[r_offset..][0..4], @as(i32, @intCast(S + A - P)), .little), |
| 1085 | 1085 | .PC32 => mem.writeInt(i32, code[r_offset..][0..4], @as(i32, @intCast(S + A - P)), .little), |
| 1086 | .PC64 => mem.writeInt(i64, code[r_offset..][0..8], S + A - P, .little), |
| 1086 | 1087 | |
| 1087 | 1088 | .GOTPCREL => mem.writeInt(i32, code[r_offset..][0..4], @as(i32, @intCast(G + GOT + A - P)), .little), |
| 1088 | 1089 | .GOTPC32 => mem.writeInt(i32, code[r_offset..][0..4], @as(i32, @intCast(GOT + A - P)), .little), |