Merge pull request #18976 from ziglang/elf-misc-fixes

elf: misc fixes
This commit is contained in:
Jakub Konka 2024-02-18 00:43:33 +01:00 committed by GitHub
commit f3bd177723
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -881,7 +881,7 @@ const x86_64 = struct {
.@"32",
.@"32S",
=> {
try atom.scanReloc(symbol, rel, dynAbsRelocAction(symbol, elf_file), elf_file);
try atom.scanReloc(symbol, rel, absRelocAction(symbol, elf_file), elf_file);
},
.GOT32,

View File

@ -55,11 +55,12 @@ const aarch64_relocs = Table(10, elf.R_AARCH64, .{
.{ .tlsdesc, .TLSDESC },
});
const riscv64_relocs = Table(9, elf.R_RISCV, .{
const riscv64_relocs = Table(10, elf.R_RISCV, .{
.{ .abs, .@"64" },
.{ .copy, .COPY },
.{ .rel, .RELATIVE },
.{ .irel, .IRELATIVE },
.{ .glob_dat, .@"64" },
.{ .jump_slot, .JUMP_SLOT },
.{ .dtpmod, .TLS_DTPMOD64 },
.{ .dtpoff, .TLS_DTPREL64 },