Go to the documentation of this file.
85 HalfWord resourceId)
const {
121 return *MapTools::valueForKey<const RelocElement*>(
141 const Chunk* chunk =
dynamic_cast<const Chunk*
>(&element);
148 if (currSect == NULL) {
187 if (&element == currSect->
element(j)) {
196 "Requested element is not found from any section of binary.");
210 HalfWord resourceId) {
216 assert(resources != NULL);
253 aSpaceSection->
link());
279 if (reloc->
location() == &element) {
307 if (reloc->
location() == &element) {
315 "There is no relocation for requested element.");
virtual bool isChunkable() const
bool hasResource(ResourceElement::ResourceType aType, HalfWord anId) const
Section * section(Word index) const
std::string chunk2String(const Chunk *chunk) const
Word sectionCount() const
ResourceElement & findResource(ResourceElement::ResourceType aType, HalfWord anId) const
static std::string toString(const T &source)
#define assert(condition)
SectionElement * element(Word index) const
ResourceType
Resource types.
bool isInSection(const InstructionElement &elem) const
SectionOffset offset() const
@ ST_RELOC
Relocation section.
virtual Word length() const
SectionElement * location() const
virtual bool isCodeSection() const
@ ST_MR
Machine resources section.
virtual Chunk * chunk(SectionOffset offset) const
@ ST_ADDRSP
Address space section.
Word elementCount() const