Refer to address that is in the data segment.
Input:
seg = where the address is going
offset = offset within seg
val = displacement from address
targetdatum = DATA, CDATA or UDATA, depending where the address is
flags = CFoff, CFseg, CFoffset64, CFswitch
int *abc = &def[3];
to allocate storage:
ElfObj_reftodatseg(DATA,offset,3 * (int *).sizeof,UDATA);
Note:
For I64 && (flags & CFoffset64) && (flags & CFswitch)
targetdatum is a symidx rather than a segment.
Refer to address that is in the data segment. Input: seg = where the address is going offset = offset within seg val = displacement from address targetdatum = DATA, CDATA or UDATA, depending where the address is flags = CFoff, CFseg, CFoffset64, CFswitch