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, isLoadablegetAlignment, getElement, getElementName, getMemSize, getName, isReferenceable, setElement, toStringpublic LoadCommand(String name, MachOObjectFile.LoadCommandKind k)
protected abstract void writePayload(OutputAssembler out, Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided)
public MachOObjectFile getOwner()
getOwner in class ObjectFile.Elementpublic byte[] getOrDecideContent(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided, byte[] contentHint)
ElementImplgetOrDecideContent in interface ElementImplgetOrDecideContent in class ObjectFile.Headerprotected 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