From: deraadt Date: Sat, 21 Jan 2023 15:38:05 +0000 (+0000) Subject: enable --exec-only as default on AMD64. There will be a some ports fallout X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6eb343fa0795a35ec2b25141651d4f37ff89ffcb;p=openbsd 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 --- 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.