From a38be94064457de8c1b04d0b621ae5db71d0e1e0 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 27 Jun 2024 19:50:23 +0900 Subject: [PATCH] Simplify --- elf/cmdline.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elf/cmdline.cc b/elf/cmdline.cc index e053f090..fa631850 100644 --- a/elf/cmdline.cc +++ b/elf/cmdline.cc @@ -554,8 +554,7 @@ std::vector parse_nonpositional_args(Context &ctx) { // // - Static PIE binaries crash on startup in some RISC-V environment if // we write addends to relocated places. - if constexpr (is_sparc || is_riscv) - ctx.arg.apply_dynamic_relocs = false; + ctx.arg.apply_dynamic_relocs = !is_sparc && !is_riscv; auto read_arg = [&](std::string name) { for (const std::string &opt : add_dashes(name)) {