From 3416bd43a5dff7dc55c8c6660d319d3fc3253f1e Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 3 Feb 2023 03:41:21 +0000 Subject: [PATCH] make --execute-only the default on powerpc ok gkoehler --- gnu/llvm/lld/ELF/Driver.cpp | 1 + gnu/llvm/lld/docs/ld.lld.1 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/llvm/lld/ELF/Driver.cpp b/gnu/llvm/lld/ELF/Driver.cpp index 4a9a6a42105..fe7258bdc20 100644 --- a/gnu/llvm/lld/ELF/Driver.cpp +++ b/gnu/llvm/lld/ELF/Driver.cpp @@ -1484,6 +1484,7 @@ static void setConfigs(opt::InputArgList &args) { #ifdef __OpenBSD__ switch (m) { case EM_AARCH64: + case EM_PPC: case EM_PPC64: case EM_RISCV: case EM_X86_64: diff --git a/gnu/llvm/lld/docs/ld.lld.1 b/gnu/llvm/lld/docs/ld.lld.1 index 888d7c5f037..b1d04e97079 100644 --- a/gnu/llvm/lld/docs/ld.lld.1 +++ b/gnu/llvm/lld/docs/ld.lld.1 @@ -213,7 +213,7 @@ followed by the name of the undefined symbol. .It Fl -execute-only Mark executable sections unreadable. This option is currently supported on x86-32, x86-64 (default), -AArch64 (default), MIPS64, PowerPC32, PowerPC64 (default), +AArch64 (default), MIPS64, PowerPC32 (default), PowerPC64 (default), RISC-V (default), and SPARC64. .It Fl -exclude-libs Ns = Ns Ar value Exclude static libraries from automatic export. -- 2.20.1