Evil source of many headaches. More...
Data Fields | |
| pr_int_t | offset |
| offset of the relocation More... | |
| pr_int_t | space |
| index of space holding data to be adjusted More... | |
| pr_uint_t | target |
| def/func/etc this relocation is for More... | |
| pr_int_t | type |
| type of the relocation (reloc_type) More... | |
Evil source of many headaches.
The whole reason I've started writing this documentation. relocs are always in the order: referenced relocs unreferenced relocs
For ref_op_* relocation types, ofs is the code section address of the statement that needs to be adjusted.
For rel_def_* relocation types, ofs refers to the data section address of the word that needs to be adjusted.
For ref_*_def(_ofs) relocation types, def is the index of the referenced def.
For ref_*_op relocation types, def is the address of the referenced statement.
For ref_*_string relocation types, def is always 0.
For ref_*_field(_ofs) relocation types, def is the index of the referenced field def.
| pr_int_t offset |
offset of the relocation
| pr_int_t space |
index of space holding data to be adjusted
| pr_uint_t target |
def/func/etc this relocation is for
| pr_int_t type |
type of the relocation (reloc_type)