专栏底层软件【求助】J3上面移植arm64的valgrind工具

【求助】J3上面移植arm64的valgrind工具

解答中
雪奇的开发生活2025-08-23
34
4

想在J3上面移植valgrind工具,已经交叉编译好了valgrind的工具,可以查看版本信息,但是使用valgrind工具运行的时候报错如下:

 

Fatal error at startup: a function redirection which is mandatory for this plagform-tool combination cannot be set up. Details of the redirection are:

A must-be-redirected function whose name matches the pattern: strlen in an object with soname matching: ld-linux-aarch64.so.1

 

通过查资料发现是J3的sdk中使用的ld-2.28.so库是stripped ,而valgrind 工具需要的是no stripped 的库。

请问如何配置J3系统使其能够满足运行valgrind工具。

底层软件
征程3
评论2
0/1000
  • 费小财
    Lv.5

    ldd检查下看还确实啥

    2025-09-02
    1
    0
  • guo
    Lv.3

    网上找个 no stripped同版本的替换下 ld-2.28.so 试试?

    2025-09-03
    0
    2
    • 雪奇的开发生活回复guo:

      试过了,这个库太重要了,刚替换完,很多功能都不好使了,重新上电后系统无法启动了。

      2025-09-05
      0
    • guo回复雪奇的开发生活:

      在系统启动后, 使用valgrind时优先使用这个 no stripped的ld库试试呢

      2025-09-05
      0