From 74310fd2095be97a62daeffdf265e3f416725d1f Mon Sep 17 00:00:00 2001 From: mortimer Date: Wed, 9 Mar 2022 00:09:45 +0000 Subject: [PATCH] Arm is not ready for unwinding yet. Disable unwind info generation for now. ok deraadt@ --- gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h b/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h index 813740f2ed3..ec3a056dcdf 100644 --- a/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h +++ b/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h @@ -81,7 +81,12 @@ public: FileType Type = ToolChain::FT_Static) const override; bool IsUnwindTablesDefault(const llvm::opt::ArgList &Args) const override { - return true; + switch (getArch()) { + case llvm::Triple::arm: + return false; + default: + return true; + } } LangOptions::StackProtectorMode -- 2.20.1