public abstract class MachOObjectFile.LoadCommand extends ObjectFile.Header
Constructor and Description |
---|
LoadCommand(String name,
MachOObjectFile.LoadCommandKind k) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getOrDecideContent(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided,
byte[] contentHint)
Implement this method to deliver the content of the section.
|
MachOObjectFile |
getOwner() |
protected int |
getWrittenSize(int payloadSize)
Get the size of this load command, given a particular payload size.
|
protected abstract void |
writePayload(OutputAssembler out,
Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided) |
getDecisions, getDependencies, getImpl, getOrDecideOffset, getOrDecideSize, getOrDecideVaddr, isLoadable
getAlignment, getElement, getElementName, getMemSize, getName, isReferenceable, setElement, toString
public LoadCommand(String name, MachOObjectFile.LoadCommandKind k)
protected abstract void writePayload(OutputAssembler out, Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided)
public MachOObjectFile getOwner()
getOwner
in class ObjectFile.Element
public byte[] getOrDecideContent(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided, byte[] contentHint)
ElementImpl
getOrDecideContent
in interface ElementImpl
getOrDecideContent
in class ObjectFile.Header
protected int getWrittenSize(int payloadSize)
MachOObjectFile.SymtabCommand
to
avoid creating cyclic dependencies.payloadSize
- the size on disk, in bytes, of the payload part of the load command