From 604309ef951a0c6074ae64c2e77a692441242ab4 Mon Sep 17 00:00:00 2001 From: mortimer Date: Sun, 27 Feb 2022 23:45:55 +0000 Subject: [PATCH] Enable unwind tables on all clang architectures. Fixes backtraces on i386 (tested by bluhm) and armv7. OK bluhm@ --- gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h b/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h index 4932ed5c609..813740f2ed3 100644 --- a/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h +++ b/gnu/llvm/clang/lib/Driver/ToolChains/OpenBSD.h @@ -80,6 +80,10 @@ public: std::string getCompilerRT(const llvm::opt::ArgList &Args, StringRef Component, FileType Type = ToolChain::FT_Static) const override; + bool IsUnwindTablesDefault(const llvm::opt::ArgList &Args) const override { + return true; + } + LangOptions::StackProtectorMode GetDefaultStackProtectorLevel(bool KernelOrKext) const override { return LangOptions::SSPStrong; -- 2.20.1