|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lib.dwfl.ElfSymbol
public class ElfSymbol
The object-file symbol. Typically obtained by reading ELF information. Do not confuse this with higher-level symbolic information, such as function names, obtained from debug information such as DWARF.
Nested Class Summary | |
---|---|
static interface |
ElfSymbol.Builder
|
static class |
ElfSymbol.Loader
|
protected static class |
ElfSymbol.PrivVerdef
|
protected static class |
ElfSymbol.PrivVerneed
|
Field Summary | |
---|---|
private long |
address
|
private String |
name
|
private long |
size
|
private ElfSymbolType |
type
|
Constructor Summary | |
---|---|
protected |
ElfSymbol(long address,
long size,
String name,
ElfSymbolType type)
|
Method Summary | |
---|---|
protected static boolean |
elf_buildsymbol(Elf parent,
long data_pointer,
long symbol_index,
long str_sect_index,
List versions,
ElfSymbol.Builder builder)
|
protected static int |
elf_getversym(long data_pointer,
long symbol_index)
|
protected static boolean |
elf_load_verdef(Elf parent,
long data_pointer,
long str_sect_index,
ElfSymbol.PrivVerdef[] ret)
|
protected static boolean |
elf_load_verneed(Elf parent,
long data_pointer,
long str_sect_index,
ElfSymbol.PrivVerneed[] ret)
|
long |
getAddress()
Return the address of the symbol. |
String |
getName()
Return the mangled name (the raw string found in the symbol table). |
long |
getSize()
Return the size of the symbol (possibly zero). |
private static ElfSectionHeader |
getSymtabHeader(ElfSection symbolsS)
|
ElfSymbolType |
getType()
Return the symbol type. |
static long |
symbolsCount(ElfSection symbolsS)
|
String |
toString()
Dump the symbol's contents. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final long address
private final long size
private final String name
private final ElfSymbolType type
Constructor Detail |
---|
protected ElfSymbol(long address, long size, String name, ElfSymbolType type)
Method Detail |
---|
public long getAddress()
public long getSize()
public String getName()
public ElfSymbolType getType()
public String toString()
toString
in class Object
private static ElfSectionHeader getSymtabHeader(ElfSection symbolsS) throws ElfException
ElfException
public static long symbolsCount(ElfSection symbolsS) throws ElfException
ElfException
protected static boolean elf_buildsymbol(Elf parent, long data_pointer, long symbol_index, long str_sect_index, List versions, ElfSymbol.Builder builder)
protected static int elf_getversym(long data_pointer, long symbol_index)
protected static boolean elf_load_verneed(Elf parent, long data_pointer, long str_sect_index, ElfSymbol.PrivVerneed[] ret)
protected static boolean elf_load_verdef(Elf parent, long data_pointer, long str_sect_index, ElfSymbol.PrivVerdef[] ret)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |