[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / Object / AMDGPU / elf64-relocs.yaml
blob0e6bc2fcfc4ce7ac7d4ccbaac57f7d64487adfe7
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-readobj -r %t | FileCheck %s
4 # CHECK: Relocations [
5 # CHECK:   Section (2) .rela.text {
6 # CHECK:     0x0  R_AMDGPU_NONE           - 0x0
7 # CHECK:     0x2  R_AMDGPU_ABS32_LO       - 0x0
8 # CHECK:     0x4  R_AMDGPU_ABS32_HI       - 0x0
9 # CHECK:     0x6  R_AMDGPU_ABS64          - 0x0
10 # CHECK:     0x8  R_AMDGPU_REL32          - 0x0
11 # CHECK:     0x10 R_AMDGPU_REL64          - 0x0
12 # CHECK:     0x12 R_AMDGPU_ABS32          - 0x0
13 # CHECK:     0x14 R_AMDGPU_GOTPCREL       - 0x0
14 # CHECK:     0x16 R_AMDGPU_GOTPCREL32_LO  - 0x0
15 # CHECK:     0x18 R_AMDGPU_GOTPCREL32_HI  - 0x0
16 # CHECK:     0x20 R_AMDGPU_REL32_LO       - 0x0
17 # CHECK:     0x22 R_AMDGPU_REL32_HI       - 0x0
18 # CHECK:     0x24 R_AMDGPU_RELATIVE64     - 0x0
19 # CHECK:   }
20 # CHECK: ]
22 !ELF
23 FileHeader:
24   Class:           ELFCLASS64
25   Data:            ELFDATA2LSB
26   Type:            ET_REL
27   Machine:         EM_AMDGPU
28 Sections:
29   - Type:            SHT_PROGBITS
30     Name:            .text
31     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
32     AddressAlign:    0x08
33     Content:         0000000000000000
34   - Type:            SHT_RELA
35     Name:            .rela.text
36     Link:            .symtab
37     Info:            .text
38     AddressAlign:    0x08
39     Relocations:
40       - Offset:          0x0
41         Type:            R_AMDGPU_NONE
42       - Offset:          0x2
43         Type:            R_AMDGPU_ABS32_LO
44       - Offset:          0x4
45         Type:            R_AMDGPU_ABS32_HI
46       - Offset:          0x6
47         Type:            R_AMDGPU_ABS64
48       - Offset:          0x8
49         Type:            R_AMDGPU_REL32
50       - Offset:          0x10
51         Type:            R_AMDGPU_REL64
52       - Offset:          0x12
53         Type:            R_AMDGPU_ABS32
54       - Offset:          0x14
55         Type:            R_AMDGPU_GOTPCREL
56       - Offset:          0x16
57         Type:            R_AMDGPU_GOTPCREL32_LO
58       - Offset:          0x18
59         Type:            R_AMDGPU_GOTPCREL32_HI
60       - Offset:          0x20
61         Type:            R_AMDGPU_REL32_LO
62       - Offset:          0x22
63         Type:            R_AMDGPU_REL32_HI
64       - Offset:          0x24
65         Type:            R_AMDGPU_RELATIVE64
67 Symbols:
68   - Name:            .text
69     Type:            STT_SECTION
70     Section:         .text
71   - Name:            main
72     Type:            STT_FUNC
73     Section:         .text
74     Size:            0x08
75     Binding:         STB_GLOBAL