AArch64: work around ld64 bug more aggressively.
authorTim Northover <tnorthover@apple.com>
Mon, 18 May 2015 22:07:20 +0000 (22:07 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 18 May 2015 22:07:20 +0000 (22:07 +0000)
commit6b57892624f1ff7dcdb6e5291bedfe7929c6d96f
treed85645bdbe681ff8149d5e4951f429753237d133
parent8b6f5f0909e2a653b047d57a8ffcd501e88b23a7
AArch64: work around ld64 bug more aggressively.

ld64 currently mishandles internal pointer relocations (i.e.
ARM64_RELOC_UNSIGNED referred to by section & offset rather than symbol). The
existing __cfstring clause was an early discovery and workaround for this, but
the problem is wider and we should avoid such relocations wherever possible for
now.

This code should be reverted to allowing internal relocations as soon as
possible.

PR23437.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237621 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp
test/MC/MachO/AArch64/cfstring.s [deleted file]
test/MC/MachO/AArch64/ld64-workaround.s [new file with mode: 0644]
test/MC/MachO/AArch64/mergeable.s