ARM: add support for segment base relocations (SBREL)
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 11 Jan 2015 04:39:18 +0000 (04:39 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sun, 11 Jan 2015 04:39:18 +0000 (04:39 +0000)
commit5e3c87ee1a04eb6f9a135734abbd663dbeef3fb3
tree0734fa16fe631c4137687767f23072052046861c
parent561088eb5d0aa7a2cfdbcaca23d60a26d6b3859e
ARM: add support for segment base relocations (SBREL)

This adds support for parsing and emitting the SBREL relocation variant for the
ARM target.  Handling this relocation variant is necessary for supporting the
full ARM ELF specification.  Addresses PR22128.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225595 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCExpr.h
lib/MC/MCExpr.cpp
lib/Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
test/MC/ARM/arm-elf-relocation-diagnostics.s [new file with mode: 0644]
test/MC/ARM/arm-elf-relocations.s