1 # RUN: not llvm-mc -filetype=obj -triple=ve %s -o /dev/null 2>&1 | \
3 # RUN: not llvm-mc -filetype=obj -triple=ve -position-independent %s \
4 # RUN: -o /dev/null 2>&1 | FileCheck %s
8 ## An undefined reference of _GLOBAL_OFFSET_TABLE_ causes .got[0] to be
9 ## allocated to store _DYNAMIC.
10 .byte _GLOBAL_OFFSET_TABLE_
11 .byte _GLOBAL_OFFSET_TABLE_ - .
12 .2byte _GLOBAL_OFFSET_TABLE_
13 .2byte _GLOBAL_OFFSET_TABLE_
- .
14 .8byte _GLOBAL_OFFSET_TABLE_
- .
16 # CHECK: data-reloc-error.s:10:7: error: 1-byte data relocation is not supported
17 # CHECK-NEXT: .byte _GLOBAL_OFFSET_TABLE_
18 # CHECK: data-reloc-error.s:11:7: error: 1-byte pc-relative data relocation is not supported
19 # CHECK-NEXT: .byte _GLOBAL_OFFSET_TABLE_ - .
20 # CHECK: data-reloc-error.s:12:8: error: 2-byte data relocation is not supported
21 # CHECK-NEXT: .2byte _GLOBAL_OFFSET_TABLE_
22 # CHECK: data-reloc-error.s:13:8: error: 2-byte pc-relative data relocation is not supported
23 # CHECK-NEXT: .2byte _GLOBAL_OFFSET_TABLE_ - .
24 # CHECK: data-reloc-error.s:14:8: error: 8-byte pc-relative data relocation is not supported
25 # CHECK-NEXT: .8byte _GLOBAL_OFFSET_TABLE_ - .