summaryrefslogtreecommitdiff
path: root/gnu/llvm
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-02-03 03:41:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-02-03 03:41:23 +0000
commit053261a6c20996982e4a037e3c447bfc15e2d626 (patch)
tree01cb760adf415454ecb22d81de2a85fab55dd9b2 /gnu/llvm
parent7bf072e42e2564b1eb15bc10282a9180e2f908b2 (diff)
make --execute-only the default on powerpc
ok gkoehler
Diffstat (limited to 'gnu/llvm')
-rw-r--r--gnu/llvm/lld/ELF/Driver.cpp1
-rw-r--r--gnu/llvm/lld/docs/ld.lld.12
2 files changed, 2 insertions, 1 deletions
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.