Relocation

Because the Mach-O relocations cannot be computed until after all the segments are written out, and we need more information than the Mach-O relocations provide, make our own relocation type. Later, translate to Mach-O relocation structure.

version(COMPILE)
extern (C++) nothrow
struct Relocation {
targ_size_t offset;
Symbol* funcsym;
Symbol* targsym;
uint targseg;
ubyte rtype;
ubyte flag;
short val;
}

Meta