[PE] file relocation

1, the data table of the sixth member to relocated Table IMAGE_DATA_DIRECTORY [5] -> IMAGE_DIRECTORY_ENTRY_BASERELOC.

. 1  struct _IMAGE_BASE_RELOCATION 
 2  {
 . 3      DWORD the VirtualAddress;     // relocation required data the RVA 
. 4      DWORD SizeOfBlock;        // entire size of the relocation table 
. 5      WORD TypeOffset [ . 1 ];      // relocation offset 
. 6 } IMAGE_BASE_RELOCATION;

 

Guess you like

Origin www.cnblogs.com/SunsetR/p/11842008.html