Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Aug 5, 2024
1 parent 1aa966c commit 893ec1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/arch-loongarch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void InputSection<E>::apply_reloc_alloc(Context<E> &ctx, u8 *base) {
} else {
// Rewrite pcalau12i + ld.d with pcaddi
assert(removed_bytes == 4);
*(ul32 *)(loc) = 0x1800'0000 | get_rd(*(ul32 *)loc); // pcaddi
*(ul32 *)loc = 0x1800'0000 | get_rd(*(ul32 *)loc); // pcaddi
write_j20(loc, (S + A - P) >> 2);
i += 3;
}
Expand Down

0 comments on commit 893ec1b

Please sign in to comment.