lib.dwfl
Class ElfSection
java.lang.Object
lib.dwfl.ElfSection
public class ElfSection
- extends Object
An ElfSection is a descriptor o an Elf file section
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pointer
private long pointer
parent
private Elf parent
ElfSection
public ElfSection(long ptr,
Elf parent)
getPointer
public long getPointer()
getIndex
public long getIndex()
- Returns:
- The index of this section.
getSectionHeader
public ElfSectionHeader getSectionHeader()
- Returns:
- The header for this ElfSection
flag
public ElfFlags flag(ElfCommand command,
ElfFlags flags)
- Flags the section with the provided flags
- Parameters:
command
- An ElfCommand
flags
- The flag to use
- Returns:
- The new flag value
flagHeader
public ElfFlags flagHeader(ElfCommand command,
ElfFlags flags)
- Flags the section header with the provided flags
- Parameters:
command
- An ElfCommand
flags
- The flags to use
- Returns:
- The new flag value
getData
public ElfData getData()
- Returns:
- The ElfData contained in this section
getRawData
public ElfData getRawData()
- Returns:
- The uninterpreted ElfData in this section
createNewElfData
public ElfData createNewElfData()
- Returns:
- Creates a new ElfData for this section
getParent
protected Elf getParent()
update
public int update(ElfSectionHeader header)
- Updates the class data back to the native elf
data structures.
elf_updateshdr
protected int elf_updateshdr(ElfSectionHeader header)
elf_ndxscn
protected long elf_ndxscn()
elf_getshdr
protected ElfSectionHeader elf_getshdr()
elf_flagscn
protected int elf_flagscn(int __cmd,
int __flags)
elf_flagshdr
protected int elf_flagshdr(int __cmd,
int __flags)
elf_getdata
protected long elf_getdata()
elf_rawdata
protected long elf_rawdata()
elf_newdata
protected long elf_newdata()