unused DT entry: type问题

输出这个东西:

 

03-09 14:38:46.291 2372-2389/? W/linker: libxxa++.so: unused DT entry: type 0x6ffffffe arg 0x7ca4

    libxxa++.so: unused DT entry: type 0x6fffffff arg 0x2

下边解释: 有些理解不了。以后再补充。

20191106:补充解释:DT表是DYNAMIC SEGMENT 的内容,这个报错,意味着DT表解析失败,很大程度就是SO编译的eabi不对,所以注意检查编译的架构类型就可以;

 

What are "unused DT entry" errors?

If you have reached this page, it's probably because you have compiled or attempted to run some binaries on your ARM based Android system, with the result that your binary/app crashes or generates a lot of warnings in your logcat. Typically something like this:

WARNING: linker: /blahblah/libopenssl.so: unused DT entry: type 0x6ffffffe arg 0x1188

Q: What is a "DT entry"?

In a few words, they are descriptive array entries in the file structure of an ELF file. Specifically they are known as Dynamic Array Tags and are requirements for executable and shared objects. However, not all entries are required or available, depending on the processor and kernel architecture.

In our case we are faced with a "Warning" that one of these are "unused". What that means is, that your executable or library (*.so) files has been compiled with the DT entry indicated, but your kernel is not supporting that entry, for various reasons. The best examples are found on ARM based Android systems, where the system library paths are fixed and the cross compilers used for your firmware (OS/kernel) are set not to use these entries. Usually the binaries still run just fine, but the kernel is flagging this warning every time you're using it.

Q: When does this happen?

This can happen when:

  • Your ARM kernel is cross-compiled using the wrong flags (usually meant for other processor architectures).
  • Your ARM binaries and libraries are cross-compiled using AOS deprecated compilation flags.
  • and probably other ways yet to be discovered..

Starting from 5.1 (API 22) the Android linker warns about the VERNEED and VERNEEDNUM ELF dynamic sections.

The most common flags that cause this error on Android devices are:

DT_RPATH        0x0f (15)       The DT_STRTAB string table offset of a null-terminated library search path string. 
                                This element's use has been superseded by DT_RUNPATH.
DT_RUNPATH      0x1d (29)       The DT_STRTAB string table offset of a null-terminated library search path string.
DT_VERNEED      0x6ffffffe      The address of the version dependency table. Elements within this table contain 
                                indexes into the string table DT_STRTAB. This element requires that the 
                                DT_VERNEEDNUM element also be present.
DT_VERNEEDNUM   0x6fffffff      The number of entries in the DT_VERNEEDNUM table.
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x24 arg 0x11ae8) (ignoring) WARNING: linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x24 arg 0x11ae8) (ignoring) linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x23 arg 0xa80) (ignoring) WARNING: linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x23 arg 0xa80) (ignoring) linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x25 arg 0x4) (ignoring) WARNING: linker: Warning: "/system/lib/libavformat.so" unused DT entry: unknown (type 0x25 arg 0x4) (ignoring) linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x24 arg 0xc4c) (ignoring) WARNING: linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x24 arg 0xc4c) (ignoring) linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x23 arg 0x8) (ignoring) WARNING: linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x23 arg 0x8) (ignoring) linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x25 arg 0x4) (ignoring) WARNING: linker: Warning: "/system/lib/libuapi_securec.so" unused DT entry: unknown (type 0x25 arg 0x4) (ignoring) CANNOT LINK EXECUTABLE "./mytest2": cannot locate symbol "av_timecode_make_smpte_tc_string2" referenced by "/system/lib/libavformat.so"... linker: CANNOT LINK EXECUTABLE "./mytest2": cannot locate symbol "av_timecode_make_smpte_tc_string2" referenced by "/system/lib/libavformat.so"...
最新发布
06-03

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值