public class ElfDynamicStructure extends Object
typedef struct { Elf32_Sword d_tag; union { Elf32_Word d_val; Elf32_Addr d_ptr; } d_un; } Elf32_Dyn;
extern Elf32_Dyn _DYNAMIC[];
typedef struct { Elf64_Sxword d_tag; union { Elf64_Xword d_val; Elf64_Addr d_ptr; } d_un; } Elf64_Dyn;
extern Elf64_Dyn _DYNAMIC[];
http://www.sco.com/developers/gabi/latest/ch5.dynamic.html: Name Value d_un Executable Shared Object ---------------------------------------------------------------------- DT_NULL 0 ignored mandatory mandatory DT_NEEDED 1 d_val optional optional DT_PLTRELSZ 2 d_val optional optional DT_PLTGOT 3 d_ptr optional optional DT_HASH 4 d_ptr mandatory mandatory DT_STRTAB 5 d_ptr mandatory mandatory DT_SYMTAB 6 d_ptr mandatory mandatory DT_RELA 7 d_ptr mandatory optional DT_RELASZ 8 d_val mandatory optional DT_RELAENT 9 d_val mandatory optional DT_STRSZ 10 d_val mandatory mandatory DT_SYMENT 11 d_val mandatory mandatory DT_INIT 12 d_ptr optional optional DT_FINI 13 d_ptr optional optional DT_SONAME 14 d_val ignored optional DT_RPATH* 15 d_val optional ignored DT_SYMBOLIC* 16 ignored ignored optional DT_REL 17 d_ptr mandatory optional DT_RELSZ 18 d_val mandatory optional DT_RELENT 19 d_val mandatory optional DT_PLTREL 20 d_val optional optional DT_DEBUG 21 d_ptr optional ignored DT_TEXTREL* 22 ignored optional optional DT_JMPREL 23 d_ptr optional optional DT_BIND_NOW* 24 ignored optional optional DT_INIT_ARRAY 25 d_ptr optional optional DT_FINI_ARRAY 26 d_ptr optional optional DT_INIT_ARRAYSZ 27 d_val optional optional DT_FINI_ARRAYSZ 28 d_val optional optional DT_RUNPATH 29 d_val optional optional DT_FLAGS 30 d_val optional optional DT_ENCODING 32 unspecified unspecified unspecified DT_PREINIT_ARRAY 32 d_ptr optional ignored DT_PREINIT_ARRAYSZ 33 d_val optional ignored DT_LOOS 0x6000000D unspecified unspecified unspecified DT_HIOS 0x6ffff000 unspecified unspecified unspecified DT_LOPROC 0x70000000 unspecified unspecified unspecified DT_HIPROC 0x7fffffff unspecified unspecified unspecified
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DF_1_GLOBAL |
static int |
DF_1_GROUP |
static int |
DF_1_NODELETE |
static int |
DF_1_NOW
Some values of
DT_FLAGS_1. |
static int |
DT_FINI |
static int |
DT_PLTGOT |
static int |
DT_RELA |
static int |
DT_RELAENT |
static int |
DT_RELASZ |
static int |
DT_RPATH |
static int |
DT_RUNPATH |
long |
dt_strtab_offset
For the
DT_STRTAB. |
int |
soName |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getInit() |
ElfInitArray |
getInitArray() |
long |
getInitArrayOffset() |
int |
getInitArraySize() |
List<String> |
getNeededLibraries() |
ElfInitArray |
getPreInitArray() |
long |
getPreInitArrayOffset() |
int |
getPreInitArraySize() |
Collection<MemoizedObject<ElfRelocation>> |
getRelocations() |
String |
getSOName(String fileName) |
ElfSymbolStructure |
getSymbolStructure() |
String |
toString() |
public static final int DT_PLTGOT
public static final int DT_RELA
public static final int DT_RELASZ
public static final int DT_RELAENT
public static final int DT_FINI
public static final int DT_RPATH
public static final int DT_RUNPATH
public static final int DF_1_NOW
DT_FLAGS_1.public static final int DF_1_GLOBAL
public static final int DF_1_GROUP
public static final int DF_1_NODELETE
public long dt_strtab_offset
DT_STRTAB. Mandatory.public final int soName
public String getSOName(String fileName) throws IOException
IOExceptionpublic int getInit()
public List<String> getNeededLibraries() throws ElfException, IOException
public long getInitArrayOffset()
public long getPreInitArrayOffset()
public int getInitArraySize()
public int getPreInitArraySize()
public ElfInitArray getInitArray() throws IOException
IOExceptionpublic ElfInitArray getPreInitArray() throws IOException
IOExceptionpublic ElfSymbolStructure getSymbolStructure() throws IOException
IOExceptionpublic Collection<MemoizedObject<ElfRelocation>> getRelocations() throws IOException
IOExceptionCopyright © 2021. All rights reserved.