MachOWriter: Don't crash on fixups with arithmetic, emit a relocation instead. This...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 12 Aug 2011 01:51:29 +0000 (01:51 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 12 Aug 2011 01:51:29 +0000 (01:51 +0000)
commit0d46ccfc5c2f5d0894e340907f6e58067cce5b03
treeb1bf201e0d02b5e37328cb6a376ed9be61806177
parentb43b09eef54ebb99079c6541f1b14ae1a2ef7017
MachOWriter: Don't crash on fixups with arithmetic, emit a relocation instead. This matches what as does.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137414 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MachObjectWriter.cpp
test/MC/MachO/x86_64-reloc-arithmetic.s [new file with mode: 0644]