读书人

readelf -d 库使用查询查出来的结果

发布时间: 2012-03-23 12:06:21 作者: rapoo

readelf -d 库使用查询,查出来的结果怎么看哦?
[root@localhost ~]# readelf -d 1

Dynamic section at offset 0x50c contains 20 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libc.so.6]
0x0000000c (INIT) 0x8048294
0x0000000d (FINI) 0x80484c8
0x6ffffef5 (GNU_HASH) 0x8048148
0x00000005 (STRTAB) 0x80481dc
0x00000006 (SYMTAB) 0x804816c
0x0000000a (STRSZ) 88 (bytes)
0x0000000b (SYMENT) 16 (bytes)
0x00000015 (DEBUG) 0x0
0x00000003 (PLTGOT) 0x80495d8
0x00000002 (PLTRELSZ) 32 (bytes)
0x00000014 (PLTREL) REL
0x00000017 (JMPREL) 0x8048274
0x00000011 (REL) 0x8048264
0x00000012 (RELSZ) 16 (bytes)
0x00000013 (RELENT) 8 (bytes)
0x6ffffffe (VERNEED) 0x8048244
0x6fffffff (VERNEEDNUM) 1
0x6ffffff0 (VERSYM) 0x8048234
0x00000000 (NULL) 0x0 《==========我只认识这个 其他都是啥东西呢,求解答

[解决办法]
干脆贴给你算了,呵呵
DT_NULL Marks end of dynamic section

DT_NEEDED String table offset to name of a needed library

DT_PLTRELSZ Size in bytes of PLT relocs

DT_PLTGOT Address of PLT and/or GOT

DT_HASH Address of symbol hash table

DT_STRTAB Address of string table

DT_SYMTAB Address of symbol table

DT_RELA Address of Rela relocs table

DT_RELASZ Size in bytes of Rela table

DT_RELAENT Size in bytes of a Rela table entry

DT_STRSZ Size in bytes of string table

DT_SYMENT Size in bytes of a symbol table entry

DT_INIT Address of the initialization function

DT_FINI Address of the termination function

DT_SONAME String table offset to name of shared object

DT_RPATH String table offset to library search path (deprecated)

DT_SYMBOLIC Alert linker to search this shared object before the executable for symbols

DT_REL Address of Rel relocs table

DT_RELSZ Size in bytes of Rel table

DT_RELENT Size in bytes of a Rel table entry

DT_PLTREL Type of reloc the PLT refers (Rela or Rel)

DT_DEBUG Undefined use for debugging

DT_TEXTREL Absence of this indicates no relocs should apply to a nonwritable segment

DT_JMPREL Address of reloc entries solely for the PLT

DT_BIND_NOW Instruct dynamic linker to process all relocs before transferring control to the executable

DT_RUNPATH String table offset to library search path

DT_LOPROC Start of processor-specific semantics

DT_HIPROC End of processor-specific semantics

读书人网 >C语言

热点推荐