You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
#include <obf/pass.hpp>
|
|
|
|
#include <obf/transform/operation.hpp>
|
|
|
|
#include <obf/transform/transform.hpp>
|
|
|
|
|
|
|
|
namespace theo::obf {
|
|
|
|
class reloc_transform_pass_t : public pass_t {
|
|
|
|
explicit reloc_transform_pass_t() : pass_t(decomp::sym_type_t::instruction){};
|
|
|
|
|
|
|
|
public:
|
|
|
|
static reloc_transform_pass_t* get();
|
|
|
|
void run(decomp::symbol_t* sym);
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::optional<recomp::reloc_t*> has_legit_reloc(decomp::symbol_t* sym);
|
|
|
|
};
|
|
|
|
} // namespace theo::obf
|