Fix a crash with X86 Mach-O and a subtraction expression where both symbols are
authorKevin Enderby <enderby@apple.com>
Mon, 12 Aug 2013 22:45:44 +0000 (22:45 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 12 Aug 2013 22:45:44 +0000 (22:45 +0000)
commitebc573ed5b7d4757d58b3bfdec53fcf9b4cb8c01
tree3f16521c9bb33c1ef2b23f9bc48dec5794d08ccd
parent4f96b7e1478be0b33cda589db40635a1e3a40c11
Fix a crash with X86 Mach-O and a subtraction expression where both symbols are
undefined and produce an error message instead as this is a non-relocatable
expression with X86 Mach-O.

rdar://8920876

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188218 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
test/MC/MachO/bad-darwin-x86_64-diff-relocs.s [new file with mode: 0644]