[PATCH] [PECOFF] Relocations now take into account the address which is stored at the relocation site

Nico Rieck nico.rieck at gmail.com
Sat Jul 27 05:18:04 PDT 2013


On 27.07.2013 13:07, Chandler Carruth wrote:
> If this isn't covered by the spec, we shouldn't use stackoverflow to figure
> it out. Instead, Rui may need to confirm of refute it manually. =/

I've seen this for SECREL and ADDR32NB relocations. Also, dumpbin has an 
"Applied To" column.

For example, these are relocations for .pdata, generated by MSVC, 
denoting start and end for a 0x30 byte main() and it's unwind info:

RELOCATIONS #6
                                                 Symbol    Symbol
  Offset    Type              Applied To         Index     Name
  --------  ----------------  -----------------  --------  ------
  00000000  ADDR32NB                   00000000        11  $LN10
  00000004  ADDR32NB                   00000030        11  $LN10
  00000008  ADDR32NB                   00000000        14  $unwind$main


-Nico



More information about the llvm-commits mailing list