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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependencies, getOrDecideContent, getOrDecideOffset, getOrDecideSize, getOrDecideVaddr
public 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.Element
public ELFObjectFile.SectionType getType()
public boolean isLoadable()
ObjectFile.Element
isLoadable
in interface ElementImpl
isLoadable
in class ObjectFile.Element
public boolean isReferenceable()
ElementImpl
isReferenceable
in interface ElementImpl
isReferenceable
in class ObjectFile.Element
public ELFObjectFile.ELFSection getLinkedSection()
public long getLinkedInfo()
public int getEntrySize()
public EnumSet<ELFObjectFile.ELFSectionFlag> getFlags()
public void setFlags(EnumSet<ELFObjectFile.ELFSectionFlag> flags)