Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rui314 committed Aug 21, 2024
1 parent 127ba25 commit 7fa5616
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 @@ -592,7 +592,7 @@ void InputSection<E>::apply_reloc_alloc(Context<E> &ctx, u8 *base) {
write_j20(loc, hi20(sym.get_tlsdesc_addr(ctx) + A, P));
else
*(ul32 *)loc = 0x0340'0000; // nop
} else if (sym.has_tlsdesc(ctx)) {
} else {
// Rewrite pcalau12i + addi.d with pcaddi
assert(removed_bytes == 4);
*(ul32 *)loc = 0x1800'0000 | get_rd(*(ul32 *)loc); // pcaddi
Expand Down

0 comments on commit 7fa5616

Please sign in to comment.