authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-08-13 10:41:57+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-08-13 13:30:24+02:00
logedd72c75eb4164f5799d56128ce6e17668efb0e2
tree1b0792938d6f2a854a830a3eca548bbb915cac17
parent57f72095082a5fadd6419d8176475f296a65bdbc

elf: fix circular dep loop in zig jump table


1 files changed, 1 insertions(+), 1 deletions(-)

src/link/Elf/ZigObject.zig+1-1
...@@ -1817,7 +1817,7 @@ pub const JumpTable = struct {...@@ -1817,7 +1817,7 @@ pub const JumpTable = struct {
18171817
1818 pub fn targetAddress(jt: JumpTable, index: Index, zo: *ZigObject, elf_file: *Elf) i64 {1818 pub fn targetAddress(jt: JumpTable, index: Index, zo: *ZigObject, elf_file: *Elf) i64 {
1819 const sym_index = jt.entries.items(.sym_index)[index];1819 const sym_index = jt.entries.items(.sym_index)[index];
1820 return zo.symbol(sym_index).address(.{}, elf_file);1820 return zo.symbol(sym_index).address(.{ .zjt = false }, elf_file);
1821 }1821 }
18221822
1823 const max_jump_seq_len = 12;1823 const max_jump_seq_len = 12;