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>
10namespace BinaryAnalysis {
11namespace Partitioner2 {
14namespace ModulesPowerpc {
27 virtual std::vector<FunctionPtr>
functions()
const override;
Base class for matching function prologues.
Matches a PowerPC function prolog using STWU.
virtual bool match(const PartitionerConstPtr &, rose_addr_t anchor) override
Attempt to match an instruction pattern.
static Ptr instance()
Allocating constructor.
virtual std::vector< FunctionPtr > functions() const override
Returns the function(s) for the previous successful match.
Holds a value or nothing.
Represents an interpretation of a binary container.
boost::logic::tribool isFunctionReturn(const PartitionerConstPtr &, const BasicBlockPtr &)
Determines whether basic block is a function return.
void nameImportThunks(const PartitionerConstPtr &, SgAsmInterpretation *)
Give names to thunks for dynamically linked functions.
Sawyer::Optional< rose_addr_t > matchElfDynamicStub(const PartitionerConstPtr &, const FunctionPtr &, const AddressIntervalSet &pltAddresses)
Matches a PowerPC ELF dynamic function stub.