[Lldb-commits] [PATCH] D62732: [RISCV] Add SystemV ABI

Jessica Clarke via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 10 11:07:38 PDT 2021


jrtc27 added a comment.

In D62732#2995111 <https://reviews.llvm.org/D62732#2995111>, @MaskRay wrote:

> Hi Luís, is this still needed after D86292 <https://reviews.llvm.org/D86292>? Or are there missing pieces?
> @felixonmars reported that https://archriscv.felixc.at/.status/logs/lldb.log still failed to build on riscv64 Arch Linux.
> It's 12.0.0 but I thought that you may have an idea :)
>
>   /usr/bin/ld: lib/liblldbPluginProcessLinux.a(NativeThreadLinux.cpp.o): in function `.L181':
>   NativeThreadLinux.cpp:(.text._ZN12lldb_private13process_linux17NativeThreadLinuxC2ERNS0_18NativeProcessLinuxEm+0x7c): undefined reference to `lldb_private::process_linux::NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(lldb_private::ArchSpec const&, lldb_private::NativeThreadProtocol&)'
>   collect2: error: ld returned 1 exit status

That just teaches it that RISC-V exists, it can't really do anything useful with it, you need this patch to teach it about relevant registers, how to disassemble, etc, and even then only for bare-metal, there is no Linux or FreeBSD arch-specific plugin.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62732/new/

https://reviews.llvm.org/D62732



More information about the lldb-commits mailing list