LDD under the embedded platform

Source: Internet
Author: User

x86 platform has LDD can be very convenient to view the dependencies of the library, but in the embedded Linux environment does not have this command, instead of it is

cc=$ (cross_compile) gcc

ldd=$ (Cross_compile) readelf

Example

[Plain]View PlainCopy
  1. $ (cross_compile) readelf-d Sdkdemo_video
  2. Dynamic section at offset 0x1a88 contains 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) (bytes)
  19. 0X0000000B (syment) (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

LDD under the embedded platform

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.