public abstract class ELFObjectFile.ELFSection extends ObjectFile.Section
| Constructor and Description |
|---|
ELFSection(String name,
ELFObjectFile.SectionType type) |
ELFSection(String name,
ELFObjectFile.SectionType type,
EnumSet<ELFObjectFile.ELFSectionFlag> flags) |
ELFSection(String name,
int alignment,
ELFObjectFile.SectionType type,
EnumSet<ELFObjectFile.ELFSectionFlag> flags,
int sectionIndex)
Constructs an ELF section of given name, type, flags and section index.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEntrySize() |
EnumSet<ELFObjectFile.ELFSectionFlag> |
getFlags() |
long |
getLinkedInfo() |
ELFObjectFile.ELFSection |
getLinkedSection() |
ELFObjectFile |
getOwner() |
ELFObjectFile.SectionType |
getType() |
boolean |
isLoadable()
Returns whether or not this section will be mapped into memory.
|
boolean |
isReferenceable()
Locations in this section are referenceable by symbol names, section names, or by relocation,
so the section needs a virtual address.
|
void |
setFlags(EnumSet<ELFObjectFile.ELFSectionFlag> flags) |
getAlignment, getDecisions, getElement, getElementName, getImpl, getMemSize, getName, setElement, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDependencies, getOrDecideContent, getOrDecideOffset, getOrDecideSize, getOrDecideVaddrpublic ELFSection(String name, ELFObjectFile.SectionType type)
public ELFSection(String name, ELFObjectFile.SectionType type, EnumSet<ELFObjectFile.ELFSectionFlag> flags)
public ELFSection(String name, int alignment, ELFObjectFile.SectionType type, EnumSet<ELFObjectFile.ELFSectionFlag> flags, int sectionIndex)
name - the section nametype - the section typeflags - the section's flagssectionIndex - the desired index in the ELF section header tablepublic ELFObjectFile getOwner()
getOwner in class ObjectFile.Elementpublic ELFObjectFile.SectionType getType()
public boolean isLoadable()
ObjectFile.ElementisLoadable in interface ElementImplisLoadable in class ObjectFile.Elementpublic boolean isReferenceable()
ElementImplisReferenceable in interface ElementImplisReferenceable in class ObjectFile.Elementpublic ELFObjectFile.ELFSection getLinkedSection()
public long getLinkedInfo()
public int getEntrySize()
public EnumSet<ELFObjectFile.ELFSectionFlag> getFlags()
public void setFlags(EnumSet<ELFObjectFile.ELFSectionFlag> flags)