summaryrefslogtreecommitdiff
path: root/test/MC/MachO
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2013-12-13 22:46:54 +0000
committerKevin Enderby <enderby@apple.com>2013-12-13 22:46:54 +0000
commit303a00ec48d35bf3ce4860fc141954efb3bfcd95 (patch)
tree6f73dd7af59a11376c73256bfc9ea7b27d3d7c6d /test/MC/MachO
parente670304f644f5996e3fe290557d9b0e707ad7b99 (diff)
downloadllvm-303a00ec48d35bf3ce4860fc141954efb3bfcd95.tar.gz
llvm-303a00ec48d35bf3ce4860fc141954efb3bfcd95.tar.bz2
llvm-303a00ec48d35bf3ce4860fc141954efb3bfcd95.tar.xz
Fixed a bug in getARMFixupKindMachOInfo() where three ARM fixup kinds
were falling into the cases for 24-bit branch kinds which are not 24-bit branches. The routine is to return false for fixups are expected to always be resolvable at assembly time. Which these three fixups are as they have limited displacement and are for local references within a function. rdar://15586725 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/MachO')
-rw-r--r--test/MC/MachO/ARM/bad-darwin-ARM-reloc.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s b/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s
new file mode 100644
index 0000000000..7ad91df3ce
--- /dev/null
+++ b/test/MC/MachO/ARM/bad-darwin-ARM-reloc.s
@@ -0,0 +1,9 @@
+@ RUN: not llvm-mc -n -triple armv7-apple-darwin10 %s -filetype=obj -o - 2> %t.err > %t
+@ RUN: FileCheck --check-prefix=CHECK-ERROR < %t.err %s
+@ rdar://15586725
+.text
+ ldr r3, L___fcommon
+.section myseg, mysect
+L___fcommon:
+ .word 0
+@ CHECK-ERROR: unsupported relocation on symbol