summaryrefslogtreecommitdiff
path: root/gnu/llvm/lld
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2023-01-21 15:38:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2023-01-21 15:38:06 +0000
commit5b2962feb26fa96ff84539399bb3bc11c91bd38a (patch)
tree0df3c0f30e6357b9e1d79de1d8042218e8cbf240 /gnu/llvm/lld
parent56372cf1c70cc55a0f25b49c6fb002017d3ff9c4 (diff)
enable --exec-only as default on AMD64. There will be a some ports fallout
for a little while more (a few more data tables inside text), but they are being handled quickly ok tb naddy
Diffstat (limited to 'gnu/llvm/lld')
-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 958fe0c2671..45c2d37d15f 100644
--- a/gnu/llvm/lld/ELF/Driver.cpp
+++ b/gnu/llvm/lld/ELF/Driver.cpp
@@ -1482,6 +1482,7 @@ static void setConfigs(opt::InputArgList &args) {
switch (m) {
case EM_AARCH64:
case EM_RISCV:
+ case EM_X86_64:
config->executeOnly = true;
break;
}
diff --git a/gnu/llvm/lld/docs/ld.lld.1 b/gnu/llvm/lld/docs/ld.lld.1
index 15929ba0467..6a505194f49 100644
--- a/gnu/llvm/lld/docs/ld.lld.1
+++ b/gnu/llvm/lld/docs/ld.lld.1
@@ -212,7 +212,7 @@ followed by the name of the missing library.
followed by the name of the undefined symbol.
.It Fl -execute-only
Mark executable sections unreadable.
-This option is currently only supported on x86-64, AArch64 (default),
+This option is currently only supported on x86-64 (default), AArch64 (default),
MIPS64, RISC-V (default), and SPARC64.
.It Fl -exclude-libs Ns = Ns Ar value
Exclude static libraries from automatic export.