From 29ee79a456d181a614aa13cb9d20b43f6c07d88a Mon Sep 17 00:00:00 2001 From: kettenis Date: Sat, 28 Jan 2023 11:13:59 +0000 Subject: [PATCH] Make --execute-only the default on powerpc64. Sort case statements in alphabetical order while I'm there. ok deraadt@ --- gnu/llvm/lld/ELF/Driver.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/llvm/lld/ELF/Driver.cpp b/gnu/llvm/lld/ELF/Driver.cpp index b718f47358b..55efade2462 100644 --- a/gnu/llvm/lld/ELF/Driver.cpp +++ b/gnu/llvm/lld/ELF/Driver.cpp @@ -360,11 +360,11 @@ static void checkOptions() { if (config->executeOnly) { switch (config->emachine) { case EM_AARCH64: - case EM_RISCV: case EM_MIPS: + case EM_PPC64: + case EM_RISCV: case EM_SPARCV9: case EM_X86_64: - case EM_PPC64: break; default: error("-execute-only is not supported on this target"); @@ -1482,6 +1482,7 @@ static void setConfigs(opt::InputArgList &args) { #ifdef __OpenBSD__ switch (m) { case EM_AARCH64: + case EM_PPC64: case EM_RISCV: case EM_X86_64: config->executeOnly = true; -- 2.20.1