summaryrefslogtreecommitdiff
path: root/llvm/test/MC/VE/data-reloc.s
blob: e64a4364ee77a8e8219313d9b990a5b8be63b130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: llvm-mc -triple=ve -filetype=obj %s -o - | \
# RUN:     llvm-objdump -r - | FileCheck %s
# RUN: llvm-mc -triple=ve -filetype=obj -position-independent %s -o - | \
# RUN:     llvm-objdump -r - | FileCheck %s

.data
a:
## An undefined reference of _GLOBAL_OFFSET_TABLE_ causes .got[0] to be
## allocated to store _DYNAMIC.
.4byte _GLOBAL_OFFSET_TABLE_ - 8
.4byte _GLOBAL_OFFSET_TABLE_ - . - 8
.8byte _GLOBAL_OFFSET_TABLE_ - 8

# CHECK: 0000000000000000 R_VE_REFLONG _GLOBAL_OFFSET_TABLE_-0x8
# CHECK: 0000000000000004 R_VE_SREL32 _GLOBAL_OFFSET_TABLE_-0x8
# CHECK: 0000000000000008 R_VE_REFQUAD _GLOBAL_OFFSET_TABLE_-0x8