无法使用 cheri-gdb 调试器进行调试,出现错误:不支持的重定位类型 0xe802。

huangapple go评论64阅读模式
英文:

Unable to debug using cheri-gdb debugger error: unsupported relocation type 0xe802

问题

我正在尝试使用cheriBSD和cheri gdb调试器来编译带有cheri能力的代码,但由于BFD:不支持的重定位类型0xe802错误,我无法在任何c文件上使用gdb调试器?我不太确定这是什么,c文件应该可以正确编译,所以我认为这是gdb的问题,但我不知道该怎么办。

英文:

I'm trying to use cheriBSD and the cheri gdb debugger to compile code with cheri capabilities however I am unable to use the gdb debugger on any of my c files due to a BFD: unsupported relocation type 0xe802 error? I'm not quite sure what that is, the c file should properly compile fine so I believe it is an issue with gdb but I don't know what to do.

答案1

得分: 2

在我们最初发布的gdb-cheri软件包中,不支持该重定位,因此您会看到许多这种形式的错误,但它们并不致命;GDB会继续运行,只是无法解释那些特定的重定位,因此它们不应该构成问题。自那时以来,我们已经发布了一个新版本的gdb-cheri软件包,支持该重定位,但该版本是在2022年10月构建的,正好在2022年12月的CheriBSD 22.12版本发布之前。因此,在你回答这个问题的时候,听起来你正在运行一个旧的(因此不再受支持的)CheriBSD版本,而不是最新版本。尽管即使在那时,如果你忽略了最初的错误消息,它应该也可以工作;更多关于出现了什么问题的详细信息将有助于解决你遇到的任何问题。

在未来,StackOverflow可能不是一个能够及时获得支持的有用地方。CHERI、Morello和CheriBSD目前是几乎没有人在StackOverflow上有经验的小众技术。CheriBSD的官方支持渠道列在https://ctsrd-cheri.github.io/cheribsd-getting-started/support/index.html中,那里记录的Slack实例是我们建议你前往的地方。

英文:

In the original gdb-cheri package we published, that relocation was not supported, and so you would see many errors of that form, but they were not fatal; GDB would continue on, just unable to interpret those specific relocations, so they should not have posed a problem. Since then we have shipped a newer version of the gdb-cheri package which does support that relocation, but that was built in October 2022 in time for the CheriBSD 22.12 release in December 2022. So it sounds to me like you are running an old (and thus no longer supported) version of CheriBSD rather than the latest version at the time you answered this question. Though even then its should have worked if you ignore the initial spew of error messages; more detail on what was broken would be helpful to resolve whatever issue you're having.

In future, StackOverflow is unlikely to be a useful place for you to get timely support. CHERI, Morello and CheriBSD are currently niche technologies that almost nobody on StackOverflow will have experience with. The official support channels for CheriBSD are listed in https://ctsrd-cheri.github.io/cheribsd-getting-started/support/index.html, and the Slack instance documented there is where we would advise you head.

huangapple
  • 本文由 发表于 2023年6月26日 19:32:34
  • 转载请务必保留本文链接:https://go.coder-hub.com/76556276.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定