xref: /llvm-project/llvm/test/ExecutionEngine/RuntimeDyld/BPF/abs64-relocation.s (revision 6a2ea84600ba4bd3b2733bd8f08f5115eb32164b)
1# RUN: rm -rf %t && mkdir -p %t
2# RUN: llvm-mc -triple=bpfel -filetype=obj -o %t/test_reloc_abs64.o %s
3# RUN: llvm-rtdyld -triple=bpfel -verify -check=%s %t/test_reloc_abs64.o
4
5# test R_BPF_64_ABS64 which should have relocation resolved properly.
6
7	.text
8	.file	"t1.c"
9	.globl	g                               # -- Begin function g
10	.p2align	3
11	.type	g,@function
12g:                                      # @g
13	r0 = 0
14	exit
15.Lfunc_end0:
16	.size	g, .Lfunc_end0-g
17                                        # -- End function
18	.type	gbl,@object                     # @gbl
19	.data
20	.globl	gbl
21	.p2align	3
22gbl:
23	.quad	g
24	.size	gbl, 8
25
26# rtdyld-check: *{8}gbl = section_addr(test_reloc_abs64.o, .text)
27