Support arm32 R_ARM_V4BX relocation format
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 22 Apr 2015 15:26:43 +0000 (15:26 +0000)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 22 Apr 2015 15:26:43 +0000 (15:26 +0000)
commitc728e851dc1990b10a7765413004d7d39b6fc029
treefad5e3ab945f02b89b06f15b89c6a6b6dafaa8ab
parent8b94db17a43a9d847fb088ac49bafde15ba61a6d
Support arm32 R_ARM_V4BX relocation format

ARM32 ELF R_ARM_V4BX relocation format is a special relocation type
that records the location of an ARMv4t BX instruction to enable a
static linker to generate ARMv4 compatible instructions.  This
relocation does not contain a reference symbol.

This patch enabled its creation by removing the requeriment of a
relocation symbol target in ELFState<ELFT>::writeSectionContent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235513 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/yaml2obj-elf-rel-noref.yaml [new file with mode: 0644]
tools/yaml2obj/yaml2elf.cpp