From 893ec1b362d2b9c7611f389e6735a45164da404f Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 5 Aug 2024 15:08:57 +0900 Subject: [PATCH] Format --- elf/arch-loongarch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elf/arch-loongarch.cc b/elf/arch-loongarch.cc index 466eaf91eb..5158842457 100644 --- a/elf/arch-loongarch.cc +++ b/elf/arch-loongarch.cc @@ -422,7 +422,7 @@ void InputSection::apply_reloc_alloc(Context &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; }