[PowerPC] Support R_PPC_REL16 family of relocations
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 21 Jun 2013 14:44:37 +0000 (14:44 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Fri, 21 Jun 2013 14:44:37 +0000 (14:44 +0000)
commit84569698f01bcb49afe5b6140bf0d61cf4f3cf5a
treece5b44d09442fcfc6faf259ee486feb918417b86
parentcab0a1933875935c717136d251e2af9749533ba8
[PowerPC] Support R_PPC_REL16 family of relocations

The GNU assembler supports (as extension to the ABI) use of PC-relative
relocations in half16 fields, which allows writing code like:

  li 1, base-.

This patch adds support for those relocation types in the assembler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184552 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELF.h
include/llvm/Support/ELF.h
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
test/MC/PowerPC/ppc64-fixups.s