public class MachORegularSection extends MachOUserDefinedSection implements ObjectFile.ProgbitsSectionImpl
impl
Constructor and Description |
---|
MachORegularSection(MachOObjectFile owner,
String name,
int alignment,
MachOObjectFile.Segment64Command segment,
ObjectFile.ProgbitsSectionImpl impl,
EnumSet<MachOObjectFile.SectionFlag> flags) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getContent() |
ObjectFile.RelocationRecord |
markRelocationSite(int offset,
ObjectFile.RelocationKind k,
String symbolName,
boolean useImplicitAddend,
Long explicitAddend)
This is like
ObjectFile.RelocatableSectionImpl.markRelocationSite(int, java.nio.ByteBuffer, com.oracle.objectfile.ObjectFile.RelocationKind, java.lang.String, boolean, java.lang.Long) , but doesn't need to be
passed a buffer. |
void |
setContent(byte[] c) |
getDecisions, getDependencies, getImpl, getMemSize, getOrCreateRelocationElement, getOrDecideContent, getOrDecideOffset, getOrDecideSize, getOrDecideVaddr, markRelocationSite, setImpl
getOwner, getSegment, isLoadable, isReferenceable, setDestinationSegmentName
getAlignment, getElement, getElementName, getName, setElement, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOrCreateRelocationElement, markRelocationSite
getAlignment, getDecisions, getDependencies, getElement, getMemSize, getOrDecideContent, getOrDecideOffset, getOrDecideSize, getOrDecideVaddr, isLoadable, isReferenceable, setElement
public MachORegularSection(MachOObjectFile owner, String name, int alignment, MachOObjectFile.Segment64Command segment, ObjectFile.ProgbitsSectionImpl impl, EnumSet<MachOObjectFile.SectionFlag> flags)
public void setContent(byte[] c)
setContent
in interface ObjectFile.ProgbitsSectionImpl
public byte[] getContent()
getContent
in interface ObjectFile.ProgbitsSectionImpl
public ObjectFile.RelocationRecord markRelocationSite(int offset, ObjectFile.RelocationKind k, String symbolName, boolean useImplicitAddend, Long explicitAddend)
ObjectFile.ProgbitsSectionImpl
ObjectFile.RelocatableSectionImpl.markRelocationSite(int, java.nio.ByteBuffer, com.oracle.objectfile.ObjectFile.RelocationKind, java.lang.String, boolean, java.lang.Long)
, but doesn't need to be
passed a buffer. It uses the byte array accessed by ObjectFile.ProgbitsSectionImpl.getContent()
and
ObjectFile.ProgbitsSectionImpl.setContent(byte[])
.markRelocationSite
in interface ObjectFile.ProgbitsSectionImpl