From: deraadt Date: Fri, 3 Feb 2023 05:59:08 +0000 (+0000) Subject: default sparc64 ld.lld to --execute-only X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=be3178932f9d78afcc231eec89712e6b1dd7af27;p=openbsd default sparc64 ld.lld to --execute-only Note this doesn't actually work yet for anything big -- some unknown stuff needs to be fixed. Also ld.lld isn't the default sparc64 ld yet. But at least having this available during normal builds, to test iterate upon, will speed up either of those desireable outcomes. ok claudio --- diff --git a/gnu/llvm/lld/ELF/Driver.cpp b/gnu/llvm/lld/ELF/Driver.cpp index fe7258bdc20..af74c63cc2d 100644 --- a/gnu/llvm/lld/ELF/Driver.cpp +++ b/gnu/llvm/lld/ELF/Driver.cpp @@ -1487,6 +1487,7 @@ static void setConfigs(opt::InputArgList &args) { case EM_PPC: case EM_PPC64: case EM_RISCV: + case EM_SPARCV9: 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 b1d04e97079..e0d792b55f1 100644 --- a/gnu/llvm/lld/docs/ld.lld.1 +++ b/gnu/llvm/lld/docs/ld.lld.1 @@ -214,7 +214,7 @@ followed by the name of the undefined symbol. Mark executable sections unreadable. This option is currently supported on x86-32, x86-64 (default), AArch64 (default), MIPS64, PowerPC32 (default), PowerPC64 (default), -RISC-V (default), and SPARC64. +RISC-V (default), and SPARC64 (default). .It Fl -exclude-libs Ns = Ns Ar value Exclude static libraries from automatic export. .It Fl -export-dynamic , Fl E