llvm-6502/lib/ExecutionEngine/RuntimeDyld
Lang Hames bb75e24528 [RuntimeDyld] Remove relocation bounds check introduced in r208375 (MachO only).
We do all of our address arithmetic in 64-bit, and operations involving
logically negative 32-bit offsets (actually represented as unsigned 64 bit ints)
often overflow into higher bits. The overflow check could be preserved by
casting to uint32 at the callsite for applyRelocationValue, but this would
eliminate the value of the check.

The right way to handle overflow in relocations is to make relocation processing
target specific, and compute the values for RelocationEntry objects in the
appropriate types (32-bit for 32-bit targets, 64-bit for 64-bit targets). This
is coming as part of the cleanup I'm working on.

This fixes another i386 regression test.

<rdar://problem/16889891>



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209536 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-23 18:35:44 +00:00
..
CMakeLists.txt Moving SectionMemoryManager to MCJIT to avoid cross dependency between JIT and RuntimeDyld 2012-11-28 01:02:06 +00:00
GDBRegistrar.cpp [C++] Use 'nullptr'. 2014-04-24 06:44:33 +00:00
JITRegistrar.h [weak vtables] Remove a bunch of weak vtables 2013-11-19 00:57:56 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Makefile
ObjectImageCommon.h PR19553: Memory leak in RuntimeDyldELF::createObjectImageFromFile 2014-04-29 21:52:46 +00:00
RuntimeDyld.cpp [RuntimeDyld] Add support for MachO __jump_table and __pointers sections, and 2014-05-12 21:39:59 +00:00
RuntimeDyldELF.cpp [RuntimeDyld] Add support for MachO __jump_table and __pointers sections, and 2014-05-12 21:39:59 +00:00
RuntimeDyldELF.h [RuntimeDyld] Add support for MachO __jump_table and __pointers sections, and 2014-05-12 21:39:59 +00:00
RuntimeDyldImpl.h [RuntimeDyld] Add support for MachO __jump_table and __pointers sections, and 2014-05-12 21:39:59 +00:00
RuntimeDyldMachO.cpp [RuntimeDyld] Teach RuntimeDyldMachO how to handle scattered VANILLA relocs on 2014-05-22 22:30:13 +00:00
RuntimeDyldMachO.h [RuntimeDyld] Remove relocation bounds check introduced in r208375 (MachO only). 2014-05-23 18:35:44 +00:00