[RuntimeDyld] Teach RuntimeDyldMachO how to handle scattered VANILLA relocs on
authorLang Hames <lhames@gmail.com>
Thu, 22 May 2014 22:30:13 +0000 (22:30 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 22 May 2014 22:30:13 +0000 (22:30 +0000)
commit8f33e4c5e430764ffd95d4d0cf86ef8816e745b6
treefe057bd07830381b8dbb65edaeebdb46ece06a76
parentff93350aa69cc7fa4ade346e550eef51fff46ceb
[RuntimeDyld] Teach RuntimeDyldMachO how to handle scattered VANILLA relocs on
i386.

This fixes two more MCJIT regression tests on i386:

  ExecutionEngine/MCJIT/2003-05-06-LivenessClobber.ll
  ExecutionEngine/MCJIT/2013-04-04-RelocAddend.ll

The implementation of processScatteredVANILLA is tasteless (*ba-dum-ching*),
but I'm working on a substantial tidy-up of RuntimeDyldMachO that should
improve things.

This patch also fixes a type-o in RuntimeDyldMachO::processSECTDIFFRelocation,
and teaches that method to skip over the PAIR reloc following the SECTDIFF.

<rdar://problem/16961886>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209478 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h