From d4d93d7fb72dd19c44aafa4dd5397e35787d33ad Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 19 Jun 2023 12:35:20 +0900 Subject: [PATCH] Format --- elf/input-sections.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/elf/input-sections.cc b/elf/input-sections.cc index 7e24baef..5d2b1279 100644 --- a/elf/input-sections.cc +++ b/elf/input-sections.cc @@ -361,7 +361,7 @@ static void apply_absrel(Context &ctx, InputSection &isec, case DYNREL: apply_dynrel(); break; - case IFUNC: { + case IFUNC: if constexpr (supports_ifunc) { u64 addr = sym.get_addr(ctx, NO_PLT) + A; *dynrel++ = ElfRel(P, E::R_IRELATIVE, 0, addr); @@ -371,7 +371,6 @@ static void apply_absrel(Context &ctx, InputSection &isec, unreachable(); } break; - } default: unreachable(); } @@ -401,11 +400,10 @@ void InputSection::write_to(Context &ctx, u8 *buf) { return; // Copy data - if constexpr (is_riscv) { + if constexpr (is_riscv) copy_contents_riscv(ctx, buf); - } else { + else uncompress_to(ctx, buf); - } // Apply relocations if (!ctx.arg.relocatable) {