GT-3320 changed manner in which Android ELF APS2 relocation table

is represented within listing.  Corrected Android relocation handling
when sections are not present.
This commit is contained in:
ghidra1 2019-11-22 16:38:14 -05:00
parent 3f6ca95996
commit d68f3697e3
13 changed files with 924 additions and 302 deletions

View file

@ -64,7 +64,6 @@ public abstract class DynamicDataType extends BuiltIn implements Dynamic {
* their data context. A null value is acceptable to indicate that a memory
* context is not available. DataTypes that need a context will return -1
* if the context is null.
* @return the number of components that make up this data prototype
* - if this is an Array, return the number of elements in the array.
* - if this datatype is a subcomponent of another datatype and it
@ -78,7 +77,7 @@ public abstract class DynamicDataType extends BuiltIn implements Dynamic {
return -1;
}
private DataTypeComponent[] getComps(MemBuffer buf) {
protected DataTypeComponent[] getComps(MemBuffer buf) {
Address addr = buf.getAddress();
DataTypeComponent[] comps = map.get(addr);
if (comps == null) {
@ -150,6 +149,12 @@ public abstract class DynamicDataType extends BuiltIn implements Dynamic {
}
/**
* Get all dynamic components associated with the specified MemBuffer
* @param buf memory buffer positioned at start of data type instance
* @return all components or null if memory data is not valid for this
* data type.
*/
protected abstract DataTypeComponent[] getAllComponents(MemBuffer buf);
@Override