libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
Classes | Macros | Functions
relocate.cpp File Reference
#include "peconv/relocate.h"
#include "peconv/pe_hdrs_helper.h"
#include <stdio.h>
#include <iostream>

Go to the source code of this file.

Classes

class  ApplyRelocCallback
 

Macros

#define RELOC_32BIT_FIELD   3
 
#define RELOC_64BIT_FIELD   0xA
 

Functions

bool is_empty_reloc_block (BASE_RELOCATION_ENTRY *block, SIZE_T entriesNum, DWORD page, PVOID modulePtr, SIZE_T moduleSize)
 
bool process_reloc_block (BASE_RELOCATION_ENTRY *block, SIZE_T entriesNum, DWORD page, PVOID modulePtr, SIZE_T moduleSize, bool is64bit, RelocBlockCallback *callback)
 
bool apply_relocations (PVOID modulePtr, SIZE_T moduleSize, ULONGLONG newBase, ULONGLONG oldBase)
 

Macro Definition Documentation

◆ RELOC_32BIT_FIELD

#define RELOC_32BIT_FIELD   3

Definition at line 9 of file relocate.cpp.

◆ RELOC_64BIT_FIELD

#define RELOC_64BIT_FIELD   0xA

Definition at line 10 of file relocate.cpp.

Function Documentation

◆ apply_relocations()

bool apply_relocations ( PVOID modulePtr,
SIZE_T moduleSize,
ULONGLONG newBase,
ULONGLONG oldBase )

Definition at line 151 of file relocate.cpp.

Here is the call graph for this function:

◆ is_empty_reloc_block()

bool is_empty_reloc_block ( BASE_RELOCATION_ENTRY * block,
SIZE_T entriesNum,
DWORD page,
PVOID modulePtr,
SIZE_T moduleSize )

Definition at line 40 of file relocate.cpp.

Here is the call graph for this function:

◆ process_reloc_block()

bool process_reloc_block ( BASE_RELOCATION_ENTRY * block,
SIZE_T entriesNum,
DWORD page,
PVOID modulePtr,
SIZE_T moduleSize,
bool is64bit,
RelocBlockCallback * callback )

Definition at line 60 of file relocate.cpp.

Here is the call graph for this function: