[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / Object / BPF / yaml2obj-elf-bpf-rel.yaml
blobca49ba87e940f3b3f35a9853088708ec260c470d
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj -r --stack-sizes %t | FileCheck %s
4 # CHECK:      Relocations [
5 # CHECK-NEXT:   Section (3) .rel.text {
6 # CHECK-NEXT:     0x0 R_BPF_64_64 g
7 # CHECK-NEXT:   }
8 # CHECK-NEXT:   Section (5) .rel.stack_sizes {
9 # CHECK-NEXT:     0x0 R_BPF_64_ABS64 .text
10 # CHECK-NEXT:   }
11 # CHECK-NEXT: ]
12 # CHECK:      StackSizes [
13 # CHECK-NEXT:   Entry {
14 # CHECK-NEXT:     Functions: [test]
15 # CHECK-NEXT:     Size: 0x0
16 # CHECK-NEXT:   }
17 # CHECK-NEXT: ]
19 --- !ELF
20 FileHeader:
21   Class:           ELFCLASS64
22   Data:            ELFDATA2LSB
23   Type:            ET_REL
24   Machine:         EM_BPF
25 Sections:
26   - Name:            .text
27     Type:            SHT_PROGBITS
28     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
29     AddressAlign:    0x8
30     Content:         '1801000000000000000000000000000061100000000000009500000000000000'
31   - Name:            .stack_sizes
32     Type:            SHT_PROGBITS
33     Flags:           [ SHF_LINK_ORDER ]
34     Link:            .text
35     AddressAlign:    0x1
36     Entries:
37       - Size:            0x0
38   - Name:            .bss
39     Type:            SHT_NOBITS
40     Flags:           [ SHF_WRITE, SHF_ALLOC ]
41     AddressAlign:    0x4
42     Size:            0x4
43   - Name:            .rel.text
44     Type:            SHT_REL
45     Link:            .symtab
46     AddressAlign:    0x8
47     Info:            .text
48     Relocations:
49       - Symbol:          g
50         Type:            R_BPF_64_64
51   - Name:            .rel.stack_sizes
52     Type:            SHT_REL
53     Link:            .symtab
54     AddressAlign:    0x8
55     Info:            .stack_sizes
56     Relocations:
57       - Symbol:          .text
58         Type:            R_BPF_64_ABS64
59   - Type:            SectionHeaderTable
60     Sections:
61       - Name:            .strtab
62       - Name:            .text
63       - Name:            .rel.text
64       - Name:            .stack_sizes
65       - Name:            .rel.stack_sizes
66       - Name:            .bss
67       - Name:            .symtab
68       - Name:            .shstrtab
69 Symbols:
70   - Name:            t.c
71     Type:            STT_FILE
72     Index:           SHN_ABS
73   - Name:            .text
74     Type:            STT_SECTION
75     Section:         .text
76   - Name:            test
77     Type:            STT_FUNC
78     Section:         .text
79     Binding:         STB_GLOBAL
80     Size:            0x20
81   - Name:            g
82     Type:            STT_OBJECT
83     Section:         .bss
84     Binding:         STB_GLOBAL
85     Size:            0x4
86 ...