fxos/lib/passes/pcrel.cpp
Lephenixnoir 468495856d
implement more of the meat of the tool
* Separate OS and Target conceptually; now an OS is created on an
  existing target which must have ROM bound.
* Add a configuration file with a data library and description files
  which are automatically loaded at startup.
* As a first application, implement target descriptions. It is now
  possible (given the proper library) to type [fxos info fx@3.10] to get
  information on the fx OS version 3.10.
* Set up the pass infrastructure and the first few easy passes. This
  is still a Work In Progress and not yet called from the command-line.
* Improve the copy/move behavior of classes (C++ concerns).
* Add instruction metadata, which will make it easier to write actual
  useful analysis passes.
2019-12-28 17:18:13 +01:00

20 lines
317 B
C++

//---
// fxos.passes.pcrel: PC-relative addressing resolution
//---
#include <fxos/disassembly.h>
namespace FxOS {
PcrelPass::PcrelPass(Disassembly &disasm):
DisassemblyPass(disasm)
{
}
void PcrelPass::analyze(uint32_t pc, ConcreteInstruction &ci)
{
enqueue_unseen_successors(pc, ci);
}
} /* namespace FxOS */