ObjectSymbolReference

Represents numeric reference contained inside 'fromSymbol'

Members

Variables

extraOffset
short extraOffset;

Extra offset added to the reference inside 'fromSymbol' For example on x86_64 direct RIP-relative call instruction is 0xE8 0xNN 0xNN 0xNN 0xNN where 0xNN 0xNN 0xNN 0xNN is offset between address of next instruction and callee. Fixup address is (fromSymbol_address + refOffset) Fixup offset is calculated as (referencedSymbol_address - (fromSymbol_address + refOffset + extraOffset)) In call example extraOffset = 4

fromSymbol
LinkIndex fromSymbol;

TODO: not needed. We get to references through fromSymbol already

nextReference
LinkIndex nextReference;

link to next reference coming from 'fromSymbol'

refKind
ObjectSymbolRefKind refKind;

Describes type of reference and its size in bytes

refOffset
uint refOffset;

Offset from start of 'fromSymbol' to the reference to 'referencedSymbol'

referencedSymbol
LinkIndex referencedSymbol;

Meta