From: mortimer Date: Sun, 27 Feb 2022 23:45:55 +0000 (+0000) Subject: Enable unwind tables on all clang architectures. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=604309ef951a0c6074ae64c2e77a692441242ab4;p=openbsd Enable unwind tables on all clang architectures. Fixes backtraces on i386 (tested by bluhm) and armv7. OK bluhm@ --- 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;