Fixed RuntimeDyldELF absolute relocations.
authorRichard Mitton <richard@codersnotes.com>
Fri, 16 Aug 2013 18:54:26 +0000 (18:54 +0000)
committerRichard Mitton <richard@codersnotes.com>
Fri, 16 Aug 2013 18:54:26 +0000 (18:54 +0000)
commitb0f79298851836cdfcca90252260d007d7561cad
tree3dbe0adaa71db1fa06ecd83f00424c11a228d468
parent8ae1efeb07be4d1bd007fee90b08813ecf05e5b1
Fixed RuntimeDyldELF absolute relocations.

If an ELF relocation is pointed at an absolute address, it will have a symbol ID of zero.
RuntimeDyldELF::processRelocationRef was not previously handling this case, and was instead trying to handle it as a section-relative fixup.

I think this is the right fix here, but my elf-fu is poor on some of the more exotic platforms, so I'd appreciate it if anyone with greater knowledge could verify this.

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