zoukankan      html  css  js  c++  java
  • 嵌入式平台下的ldd

    x86平台有ldd可以很方便的查看对库的依赖关系,但在嵌入式linux环境中没有这个命令,替而代之是

    CC=$(CROSS_COMPILE)gcc

    LDD=$(CROSS_COMPILE)readelf

    范例

    [plain] view plain copy
     
    1. $(CROSS_COMPILE)readelf -d SDKDemo_video   
    2. Dynamic section at offset 0x1a88 contains 22 entries:  
    3.   Tag        Type                         Name/Value  
    4.  0x00000001 (NEEDED)                     Shared library: [libtxdevicesdk.so]  
    5.  0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]  
    6.  0x00000001 (NEEDED)                     Shared library: [libdl.so.0]  
    7.  0x00000001 (NEEDED)                     Shared library: [libstdc++.so.6]  
    8.  0x00000001 (NEEDED)                     Shared library: [libc.so.0]  
    9.  0x0000000c (INIT)                       0x87cc  
    10.  0x0000000d (FINI)                       0x96d0  
    11.  0x00000019 (INIT_ARRAY)                 0x11a7c  
    12.  0x0000001b (INIT_ARRAYSZ)               4 (bytes)  
    13.  0x0000001a (FINI_ARRAY)                 0x11a80  
    14.  0x0000001c (FINI_ARRAYSZ)               4 (bytes)  
    15.  0x00000004 (HASH)                       0x8108  
    16.  0x00000005 (STRTAB)                     0x84ec  
    17.  0x00000006 (SYMTAB)                     0x824c  
    18.  0x0000000a (STRSZ)                      512 (bytes)  
    19.  0x0000000b (SYMENT)                     16 (bytes)  
    20.  0x00000015 (DEBUG)                      0x0  
    21.  0x00000003 (PLTGOT)                     0x11b60  
    22.  0x00000002 (PLTRELSZ)                   224 (bytes)  
    23.  0x00000014 (PLTREL)                     REL  
    24.  0x00000017 (JMPREL)                     0x86ec  
    25.  0x00000000 (NULL)                       0x0  
  • 相关阅读:
    Restful、SOAP、RPC、SOA、微服务之间的区别
    SOA(面向服务的架构.)、RPC(远程过程调用)思想
    facade层,service 层,domain层,dao 层设计
    Mac下配置alias,zsh终端命令别名
    .bash_profile 和.zshrc
    什么是零担物流?零担物流的五大特点
    零担是什么意思,零担物流和快递有什么区别
    idea vm options
    idea中 VM options配置
    ES配置生命周期策略
  • 原文地址:https://www.cnblogs.com/lidabo/p/5405648.html
Copyright © 2011-2022 走看看