1 # RUN: llvm-mc -triple=bpfel -filetype=obj -o %t %s
2 # RUN: llvm-rtdyld -triple=bpfel -verify -check=%s %t
4 # test R_BPF_64_64 and R_BPF_64_NODYLD32 relocations, both should be ignored.
12 # rtdyld-check: decode_operand(_main, 1)[31:0] = 0x0
17 .size _main, .Lfunc_end0-_main
21 .section .bss,"aw",@nobits
28 # rtdyld-check: *{4}a = 0
30 .section .BTF,"",@progbits
39 .long 0 # BTF_KIND_FUNC_PROTO(id = 1)
40 .long 218103808 # 0xd000000
42 .long 1 # BTF_KIND_INT(id = 2)
43 .long 16777216 # 0x1000000
45 .long 16777248 # 0x1000020
46 .long 5 # BTF_KIND_FUNC(id = 3)
47 .long 201326593 # 0xc000001
49 .long 80 # BTF_KIND_VAR(id = 4)
50 .long 234881024 # 0xe000000
53 .long 82 # BTF_KIND_DATASEC(id = 5)
54 .long 251658241 # 0xf000001
60 # rtdyld-check: *{4}btf_a = 0
63 .byte 0 # string offset=0
64 .ascii "int" # string offset=1
66 .ascii "_main" # string offset=5
68 .ascii ".text" # string offset=11
70 .ascii "/home/yhs/work/tests/llvm/rtdyld/t.c" # string offset=17
72 .ascii "int _main() { return a; }" # string offset=54
74 .byte 97 # string offset=80
76 .ascii ".bss" # string offset=82