public class ElfSegment extends Object
e_phentsize and e_phnum members.
http://www.sco.com/developers/gabi/latest/ch5.pheader.html#p_type
http://stackoverflow.com/questions/22612735/how-can-i-find-the-dynamic-libraries-required-by-an-elf-binary-in-c| 限定符和类型 | 字段和说明 |
|---|---|
long |
alignment |
long |
file_size
Elf{32,64}_Phdr#p_filesz.
|
int |
flags
Flags relevant to this segment.
|
long |
mem_size
Elf{32,64}_Phdr#p_memsz.
|
long |
offset
Elf{32,64}_Phdr#p_offset.
|
static int |
PF_R |
static int |
PF_W |
static int |
PF_X |
long |
physical_address
Reserved for the physical address of the segment on systems where physical addressing is relevant.
|
static int |
PT_ARM_EXIDX
.ARM.exidx segment
|
static int |
PT_DYNAMIC
The array element specifies dynamic linking information.
|
static int |
PT_GNU_EH_FRAME
EH frame segment
|
static int |
PT_HIOS
Upper bound of the range reserved for operating system-specific semantics.
|
static int |
PT_HIPROC
Upper bound of the range reserved for processor-specific semantics.
|
static int |
PT_INTERP
The array element specifies the location and size of a null-terminated path name to invoke as an interpreter.
|
static int |
PT_LOAD
Type defining that the array element specifies a loadable segment.
|
static int |
PT_LOOS
Lower bound of the range reserved for operating system-specific semantics.
|
static int |
PT_LOPROC
Lower bound of the range reserved for processor-specific semantics.
|
static int |
PT_NOTE
The array element specifies the location and size of auxiliary information.
|
static int |
PT_NULL
Type defining that the array element is unused.
|
static int |
PT_PHDR
The array element, if present, specifies the location and size of the program header table itself, both in the
file and in the memory image of the program.
|
static int |
PT_SHLIB
This segment type is reserved but has unspecified semantics.
|
static int |
PT_TLS
The array element specifies the Thread-Local Storage template.
|
int |
type
Elf{32,64}_Phdr#p_type.
|
long |
virtual_address
Elf{32,64}_Phdr#p_vaddr.
|
| 限定符和类型 | 方法和说明 |
|---|---|
MemoizedObject<ArmExIdx> |
getARMExIdxData() |
ElfDynamicStructure |
getDynamicStructure() |
MemoizedObject<GnuEhFrameHeader> |
getEhFrameHeader() |
String |
getInterpreter()
Only for
PT_INTERP headers. |
PtLoadData |
getPtLoadData() |
String |
toString() |
public static final int PT_NULL
public static final int PT_LOAD
public static final int PT_DYNAMIC
public static final int PT_INTERP
public static final int PT_NOTE
public static final int PT_SHLIB
public static final int PT_PHDR
public static final int PT_TLS
public static final int PT_LOOS
public static final int PT_GNU_EH_FRAME
public static final int PT_HIOS
public static final int PT_LOPROC
public static final int PT_ARM_EXIDX
public static final int PT_HIPROC
public final int type
public final long offset
public final long virtual_address
public final long physical_address
public final long file_size
public final long mem_size
public final int flags
public final long alignment
public static final int PF_R
public static final int PF_W
public static final int PF_X
public String getInterpreter() throws IOException
PT_INTERP headers.IOExceptionpublic PtLoadData getPtLoadData() throws IOException
IOExceptionpublic ElfDynamicStructure getDynamicStructure() throws IOException
IOExceptionpublic MemoizedObject<GnuEhFrameHeader> getEhFrameHeader()
public MemoizedObject<ArmExIdx> getARMExIdxData()
Copyright © 2021. All rights reserved.