Teach ARM/MC/ELF to handle R_ARM_JUMP24 relocation type for conditional jumps.
authorJason W Kim <jason.w.kim.2009@gmail.com>
Fri, 4 Feb 2011 19:47:15 +0000 (19:47 +0000)
committerJason W Kim <jason.w.kim.2009@gmail.com>
Fri, 4 Feb 2011 19:47:15 +0000 (19:47 +0000)
commit685c350ae76b588e1f00c01a511fe8bd57f18394
tree928a83853f72ae7ac0064957ef996de0cd0fc886
parentcb6404711b7fe6f583480adce8d7e9d5e4b99ae6
Teach ARM/MC/ELF to handle R_ARM_JUMP24 relocation type for conditional jumps.
(yes, this is different from R_ARM_CALL)

- Adds a new method getARMBranchTargetOpValue() which handles the
  necessary distinction between the conditional and unconditional br/bl
  needed for ARM/ELF

At least for ARM mode, the needed fixup for conditional versus unconditional
br/bl is identical, but the ARM docs and existing ARM tools expect this
reloc type...

Added a few FIXME's for future naming fixups in ARMInstrInfo.td

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124895 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
lib/MC/MachObjectWriter.cpp
lib/Target/ARM/ARMAsmBackend.cpp
lib/Target/ARM/ARMCodeEmitter.cpp
lib/Target/ARM/ARMFixupKinds.h
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMMCCodeEmitter.cpp
test/MC/ARM/arm_fixups.s
utils/TableGen/EDEmitter.cpp