ElfObj_reftodatseg

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

version(COMPILE)
extern (C++) nothrow
static if(1)
void
ElfObj_reftodatseg
(
int seg
,
targ_size_t offset
,
targ_size_t val
,,
int flags
)

Examples

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.

Meta