1) Proper emit displacements for x86, using absolute relocations where necessary
commit670400e4733c4a801085e2aa9e5c40cdb3e445a2
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 5 Aug 2009 00:11:21 +0000 (5 00:11 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Wed, 5 Aug 2009 00:11:21 +0000 (5 00:11 +0000)
treeca3cfc71e21e717b62b0dfc93bd1af9bbb0518db
parenta629b695c44a64efa9e978aa0467325cdf6ff874
1) Proper emit displacements for x86, using absolute relocations where necessary
for ELF to work.
2) RIP addressing: Use SIB bytes for absolute relocations where RegBase=0,
IndexReg=0.
3) The JIT can get the real address of cstpools and jmptables during
code emission, fix that for object code emission

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78129 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/JITCodeEmitter.h
include/llvm/CodeGen/MachineCodeEmitter.h
include/llvm/CodeGen/ObjectCodeEmitter.h
lib/Target/X86/X86CodeEmitter.cpp
lib/Target/X86/X86JITInfo.cpp
lib/Target/X86/X86Relocations.h