[PATCH] MCJIT MachO debugging support

Lang Hames lhames at gmail.com
Wed Jun 18 20:26:13 PDT 2014


Hi Keno,

I think all you need, in updateSectionAddress, is a guard along the lines of:

        if (OldSectionAddrList[Sec.getRawDataRefImpl().d.a] == 0)
          OldSectionAddrList[Sec.getRawDataRefImpl().d.a] = oldAddr;

That way the original section address will be preserved (so internal relocations will still be computed correctly), but successive moves should also update the symbol and section addresses in the object image. Does that sound right to you?

Cheers,
Lang.

http://reviews.llvm.org/D4005






More information about the llvm-commits mailing list