public class ElfBinaryObject extends BinaryObjectAdapter
BinaryObjectAdapter.BinaryObjectInfo
NO_SYMBOLS
ARCHIVE, CORE, EXECUTABLE, OBJECT, SHARED
Constructor and Description |
---|
ElfBinaryObject(IBinaryParser parser,
org.eclipse.core.runtime.IPath p,
AR.ARHeader h) |
ElfBinaryObject(IBinaryParser parser,
org.eclipse.core.runtime.IPath p,
int type) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSymbols(Elf.Symbol[] array,
int type,
List<Symbol> list) |
<T> T |
getAdapter(Class<T> adapter) |
IAddressFactory |
getAddressFactory() |
protected BinaryObjectAdapter.BinaryObjectInfo |
getBinaryObjectInfo() |
InputStream |
getContents() |
String |
getCPU()
CPU name
|
protected ElfHelper |
getElfHelper() |
String |
getName()
The name of the object
|
IBinaryParser.ISymbol[] |
getSymbols()
Symbols of the object
|
boolean |
isLittleEndian()
The endian
|
protected void |
loadAll() |
protected void |
loadInfo() |
protected void |
loadInfo(ElfHelper helper) |
protected void |
loadSymbols(ElfHelper helper) |
getBSS, getData, getNeededSharedLibs, getSoName, getSymbol, getText, hasDebug, toString
getBinaryParser, getPath, getType, hasChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBinaryParser, getPath, getType
public ElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath p, AR.ARHeader h)
public ElfBinaryObject(IBinaryParser parser, org.eclipse.core.runtime.IPath p, int type)
public String getName()
IBinaryParser.IBinaryObject
getName
in interface IBinaryParser.IBinaryObject
getName
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getName()
public InputStream getContents() throws IOException
getContents
in interface IBinaryParser.IBinaryFile
getContents
in class BinaryFile
IOException
IBinaryParser.IBinaryFile.getContents()
public IBinaryParser.ISymbol[] getSymbols()
IBinaryParser.IBinaryObject
getSymbols
in interface IBinaryParser.IBinaryObject
getSymbols
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getSymbols()
protected BinaryObjectAdapter.BinaryObjectInfo getBinaryObjectInfo()
getBinaryObjectInfo
in class BinaryObjectAdapter
protected ElfHelper getElfHelper() throws IOException
IOException
protected void loadAll() throws IOException
IOException
protected void loadInfo() throws IOException
IOException
protected void loadInfo(ElfHelper helper) throws IOException
IOException
protected void loadSymbols(ElfHelper helper) throws IOException
IOException
protected void addSymbols(Elf.Symbol[] array, int type, List<Symbol> list)
public <T> T getAdapter(Class<T> adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class org.eclipse.core.runtime.PlatformObject
public IAddressFactory getAddressFactory()
getAddressFactory
in interface IBinaryParser.IBinaryObject
getAddressFactory
in class BinaryObjectAdapter
public boolean isLittleEndian()
IBinaryParser.IBinaryObject
isLittleEndian
in interface IBinaryParser.IBinaryObject
isLittleEndian
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.isLittleEndian()
public String getCPU()
IBinaryParser.IBinaryObject
getCPU
in interface IBinaryParser.IBinaryObject
getCPU
in class BinaryObjectAdapter
IBinaryParser.IBinaryObject.getCPU()
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.