交叉编译器ldd [英] cross compiler ldd

查看:191
本文介绍了交叉编译器ldd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have created a cross compiled arm executable. I want to find the library dependency of the executable. I am using ubuntu natty and installed arm-linux-gnueabi tool chain, which does not contain ldd. Is there a tool available to view arm executables library dependancy in linux.

推荐答案

这有点儿混乱,但这是我能找到的最佳解决方案,对于基本用途它确实很好用-只需将该脚本另存为"arm-none-linux-gnueabi-ldd"和其他跨工具.

This is a bit of a kluge, but it's the best solution I could find, and it really works quite well for basic use - just save this script as "arm-none-linux-gnueabi-ldd" with your other cross tools.

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

这篇关于交叉编译器ldd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆