1 #ifndef ROSE_BinaryAnalysis_Partitioner2_ModulesPowerpc_H
2 #define ROSE_BinaryAnalysis_Partitioner2_ModulesPowerpc_H
3 #include <featureTests.h>
4 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
5 #include <Rose/BinaryAnalysis/Partitioner2/Modules.h>
7 #include <boost/logic/tribool.hpp>
10 namespace BinaryAnalysis {
11 namespace Partitioner2 {
14 namespace ModulesPowerpc {
27 virtual std::vector<FunctionPtr>
functions()
const override;
Sawyer::Optional< rose_addr_t > matchElfDynamicStub(const PartitionerConstPtr &, const FunctionPtr &, const AddressIntervalSet &pltAddresses)
Matches a PowerPC ELF dynamic function stub.
Base class for matching function prologues.
virtual std::vector< FunctionPtr > functions() const override
Returns the function(s) for the previous successful match.
Matches a PowerPC function prolog using STWU.
static Ptr instance()
Allocating constructor.
void nameImportThunks(const PartitionerConstPtr &, SgAsmInterpretation *)
Give names to thunks for dynamically linked functions.
Main namespace for the ROSE library.
boost::logic::tribool isFunctionReturn(const PartitionerConstPtr &, const BasicBlockPtr &)
Determines whether basic block is a function return.
virtual bool match(const PartitionerConstPtr &, rose_addr_t anchor) override
Attempt to match an instruction pattern.
Represents an interpretation of a binary container.