ARM: when falling back to scattered relocs, keep the type.
authorTim Northover <tnorthover@apple.com>
Fri, 4 Jul 2014 10:58:05 +0000 (10:58 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 4 Jul 2014 10:58:05 +0000 (10:58 +0000)
commit0f9d1b381e094470b5a44fdcc50aa9ab2acf27d8
treea79ba3b785c1164763f198ee9abe9cee1d1d3ea1
parent5b003bb869bb79cbec59f76c2ffe6461c8a8efea
ARM: when falling back to scattered relocs, keep the type.

The linker relies on relocation type info (e.g. is it a branch?) to perform the
correct actions, so we should keep that even when we end up using a scattered
relocation for whatever reason.

rdar://problem/17553104

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212333 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp
test/MC/ARM/macho-relocs-with-addend.s [new file with mode: 0644]