authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-02-18 00:43:33+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-02-18 00:43:33+01:00
logf3bd177723293d11680f3cccaa2f5798a5625667
tree179cb6435a2ec0d8b8707dee003c21e2b00a9c41
parent3e8cb153ea44ad1f403fbf6d23a67c839df57925
parent99584906bbdf0b2fdc69386546fb8c6d96ab09f5
signaturebadge-check Signed by PGP key B5690EEEBB952194

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

elf: misc fixes

2 files changed, 3 insertions(+), 2 deletions(-)

src/link/Elf/Atom.zig+1-1
......@@ -881,7 +881,7 @@ const x86_64 = struct {
881881 .@"32",
882882 .@"32S",
883883 => {
884 try atom.scanReloc(symbol, rel, dynAbsRelocAction(symbol, elf_file), elf_file);
884 try atom.scanReloc(symbol, rel, absRelocAction(symbol, elf_file), elf_file);
885885 },
886886
887887 .GOT32,
src/link/Elf/relocation.zig+2-1
......@@ -55,11 +55,12 @@ const aarch64_relocs = Table(10, elf.R_AARCH64, .{
5555 .{ .tlsdesc, .TLSDESC },
5656});
5757
58const riscv64_relocs = Table(9, elf.R_RISCV, .{
58const riscv64_relocs = Table(10, elf.R_RISCV, .{
5959 .{ .abs, .@"64" },
6060 .{ .copy, .COPY },
6161 .{ .rel, .RELATIVE },
6262 .{ .irel, .IRELATIVE },
63 .{ .glob_dat, .@"64" },
6364 .{ .jump_slot, .JUMP_SLOT },
6465 .{ .dtpmod, .TLS_DTPMOD64 },
6566 .{ .dtpoff, .TLS_DTPREL64 },