LDD相当于在Android [英] ldd equivalent on android

查看:461
本文介绍了LDD相当于在Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个libTest.so不会在某些设备上加载。 logcat的是绝对没用。 使用 ARM-Linux的androideabi-readelf.exe -d libTest.so 我能看到所有必需的lib的libTest.so需求。我把他们都到同一个文件夹我的本地PC上。

I have a libTest.so that does not load on some devices. logcat is absolutely useless. Using arm-linux-androideabi-readelf.exe -d libTest.so I was able to see all required libs that libTest.so needs. I pulled them all in, into the same folder on my local PC.

我如何找出哪些符号缺​​失,并在图书馆?我只有一套标准的工具,从NDK(纳米,readelf,objdump的等)。哪个工具以及如何使用,使其解析我libTest.so和所有相关的库以及并告诉我哪个符号$ P $加载到目标设备上pvents我的lib目录下。

How can I find out which symbols is missing and in which library? I have only standard set of tools from the NDK (nm, readelf, objdump etc). Which tool and how can I use so that it parses my libTest.so and all dependent libs as well and tells me which symbol prevents my lib from loading on the target device.

推荐答案

由于Android的开发者。我的功能要求实施:) 现在我们有<一个href="https://android.googlesource.com/platform/ndk/+/426f4ee8a8c3be97122c1a6bf5f58dbd9486bbc9/docs/text/NDK-DEPENDS.text"相对=nofollow> NDK-取决于,一种工具,让解决依赖关系。

Thanks to android developers. My feature request was implemented :) Now we have ndk-depends, a tool that allows to troubleshoot dependencies.

编辑:它不这样做完全符号解析虽然。例如。如果你建立针对Android的14,并尝试使用未在老机器人存在的方法,那么这个工具不会列出丢失的符号。这部分被留在一个TODO NDK-依赖。

it doesn't do full symbol resolution though. E.g. if you build against Android-14 and try to use methods that didn't exist in old Androids, then this tool won't list missing symbols. This part was left as a TODO in ndk-depends.

这篇关于LDD相当于在Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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