2017年8月6日 星期日

readelf

-s: list symbols
-W: don't cut too long names
-d: will list the direct dependencies as NEEDED sections.


read .a file by readelf
$ readelf -h xxx.a
File: xxx.a(mhd_thread.o)  //function name
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              REL (Relocatable file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          0 (bytes into file)
  Start of section headers:          216200 (bytes into file)
  Flags:                             0x5000000, Version5 EABI
  Size of this header:               52 (bytes)
  Size of program headers:           0 (bytes)
  Number of program headers:         0
  Size of section headers:           40 (bytes)
  Number of section headers:         276
  Section header string table index: 275

read .a file by objdump
objdump -a xxx.a
In archive xxx.a:

mhd_thread.o:     file format elf32-little
rw------- 0/0 227240 Mar 22 11:03 yyyy mhd_thread.o

沒有留言:

張貼留言