public class ELFObjectFile.SectionHeaderTable extends ObjectFile.Element
StringTable
in this
implementation.Constructor and Description |
---|
SectionHeaderTable()
Logically create an empty SectionHeaderTable.
|
Modifier and Type | Method and Description |
---|---|
LayoutDecisionMap |
getDecisions(LayoutDecisionMap copyingIn) |
Iterable<BuildDependency> |
getDependencies(Map<ObjectFile.Element,LayoutDecisionMap> decisions)
Implementing this method allows to declare dependencies to other Sections (i.e.
|
ElementImpl |
getImpl() |
byte[] |
getOrDecideContent(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided,
byte[] contentHint)
Implement this method to deliver the content of the section.
|
int |
getOrDecideOffset(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided,
int offsetHint)
Implement this method to provide the offset this section should be placed at.
|
int |
getOrDecideSize(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided,
int sizeHint)
Implement this method to provide the size of this section.
|
int |
getOrDecideVaddr(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided,
int vaddrHint)
Implement this method to provide the virtual address of this section.
|
boolean |
isLoadable()
Returns whether or not this section will be mapped into memory.
|
void |
write(OutputAssembler out,
Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided) |
getAlignment, getElement, getElementName, getMemSize, getName, getOwner, isReferenceable, setElement, toString
public SectionHeaderTable()
public ElementImpl getImpl()
getImpl
in class ObjectFile.Element
public boolean isLoadable()
ObjectFile.Element
isLoadable
in interface ElementImpl
isLoadable
in class ObjectFile.Element
public Iterable<BuildDependency> getDependencies(Map<ObjectFile.Element,LayoutDecisionMap> decisions)
ElementImpl
public int getOrDecideSize(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided, int sizeHint)
ElementImpl
public byte[] getOrDecideContent(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided, byte[] contentHint)
ElementImpl
public LayoutDecisionMap getDecisions(LayoutDecisionMap copyingIn)
getDecisions
in interface ElementImpl
getDecisions
in class ObjectFile.Element
public int getOrDecideOffset(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided, int offsetHint)
ElementImpl
public int getOrDecideVaddr(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided, int vaddrHint)
ElementImpl
ElementImpl.isLoadable()
).public void write(OutputAssembler out, Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided)