linux - 交叉编译器ldd

标签 linux ubuntu arm cross-compiling ldd

我创建了一个交叉编译的 arm 可执行文件。我想找到可执行文件的库依赖项。我正在使用 ubuntu natty 并安装了 arm-linux-gnueabi 工具链,其中不包含 ldd。有没有工具可用于查看 linux 中的 arm 可执行库依赖关系。

最佳答案

这有点麻烦,但它是我能找到的最佳解决方案,而且它对于基本使用确实非常有效 - 只需将此脚本保存为“arm-none-linux-gnueabi-ldd”与您的其他交叉工具。

#!/bin/sh
arm-none-linux-gnueabi-readelf -a $1 | grep "Shared library:"

关于linux - 交叉编译器ldd,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6150000/

相关文章:

linux - 删除目录中的旧文件

linux - 无法在 crontab 中运行 shell 脚本

ubuntu - 我可以更改 Gnome 3.10 工作区网格吗?

ubuntu - imagemagick 构建每 A4 页两张图像的文档

c# - 如何重新编译 C# 程序以在 ARM CPU 上运行?

linux - 如何在 Linux 中获取进程保存的寄存器(ARM 架构)

c++ - 对 `boost::thread 的 undefined reference

linux - 使用 Cloudflare 时,NGINX 速率限制不起作用。我可以用一个简单的 `ab` 命令关闭我的网站

mongodb - 使用 "sudo service mongod start"和 "mongod"有什么区别?

gcc - aarch64 : NEON registers when compiling with gcc