summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-04-25 22:36:07 +0000
committerTim Northover <tnorthover@apple.com>2016-04-25 22:36:07 +0000
commitcbba0aba162fafaf25cbc0f6cccaf88012cb0728 (patch)
tree79b8d54244db82333d35894aeeb45ae0dc14d5fb /llvm/test/MC
parent736efc894da74d376713f800aebcf7dc9998dcde (diff)
downloadbcm5719-llvm-cbba0aba162fafaf25cbc0f6cccaf88012cb0728.tar.gz
bcm5719-llvm-cbba0aba162fafaf25cbc0f6cccaf88012cb0728.zip
ARM: put correct symbol index on indirect pointers in __thread_ptr.
Otherwise the linker has no idea what should be resolved. llvm-svn: 267488
Diffstat (limited to 'llvm/test/MC')
-rw-r--r--llvm/test/MC/ARM/tls-directives.s6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/test/MC/ARM/tls-directives.s b/llvm/test/MC/ARM/tls-directives.s
index c0e9f6cc142..69a02689289 100644
--- a/llvm/test/MC/ARM/tls-directives.s
+++ b/llvm/test/MC/ARM/tls-directives.s
@@ -1,5 +1,9 @@
@ RUN: llvm-mc -triple thumbv7-apple-ios -filetype=obj -o %t %s
-@ RUN: llvm-objdump -p %t | FileCheck %s
+@ RUN: llvm-objdump -macho -p -indirect-symbols %t | FileCheck %s
+
+@ CHECK: Indirect symbols for (__DATA,__thread_ptr)
+@ CHECK: 0x0000001c 5 _a
+
@ CHECK: sectname __thread_data
@ CHECK: segname __DATA
OpenPOWER on IntegriCloud