From: kettenis Date: Sat, 28 Jan 2023 11:13:59 +0000 (+0000) Subject: Make --execute-only the default on powerpc64. Sort case statements in X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=29ee79a456d181a614aa13cb9d20b43f6c07d88a;p=openbsd Make --execute-only the default on powerpc64. Sort case statements in alphabetical order while I'm there. ok deraadt@ --- 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;