Skip to content

Commit

Permalink
LoongArch: fix error offset for relaxation of R_LARCH_CALL36
Browse files Browse the repository at this point in the history
  • Loading branch information
ywgrit committed Aug 26, 2024
1 parent ed4cae9 commit 1c32102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch-loongarch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ void InputSection<E>::apply_reloc_alloc(Context<E> &ctx, u8 *base) {
*(ul32 *)loc = 0x5000'0000; // B
else
*(ul32 *)loc = 0x5400'0000; // BL
write_k16(loc, (S + A - P) >> 2);
write_d10k16(loc, (S + A - P) >> 2);
}
break;
case R_LARCH_ADD_ULEB128:
Expand Down

0 comments on commit 1c32102

Please sign in to comment.