[RISCV] Change func to funct in RISCVInstrInfoXqci.td. NFC (#119669)
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / AArch64 / ELF_R_AARCH64_ABS32.yaml
blobca992adbba8198f2864bbe90d2796435d42ffb89
1 # Check success and failure cases of R_AARCH64_32 handling.
2 # This file contains a single R_AARCH64_ABS32 relocation. We expect the
3 # relocation to apply successfully when we assign x an address in the low
4 # 32-bits of the address space, and fail if we assign x an address outside that
5 # range.
7 # RUN: yaml2obj -o %t.o %s
8 # RUN: llvm-jitlink -abs x=0x12345678 -noexec -check=%s %t.o
9 # RUN: not llvm-jitlink -abs x=0x123456789 -noexec %t.o 2>&1 | \
10 # RUN:   FileCheck -check-prefix=CHECK-ERROR %s
12 # jitlink-check: *{8}xptr = x
14 # CHECK-ERROR: relocation target "x" {{.*}} is out of range of Pointer32 fixup
16 --- !ELF
17 FileHeader:
18   Class:           ELFCLASS64
19   Data:            ELFDATA2LSB
20   Type:            ET_REL
21   Machine:         EM_AARCH64
22   SectionHeaderStringTable: .strtab
23 Sections:
24   - Name:            .text
25     Type:            SHT_PROGBITS
26     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
27     AddressAlign:    0x4
28     Content:         E0031F2AC0035FD6
29   - Name:            .data
30     Type:            SHT_PROGBITS
31     Flags:           [ SHF_WRITE, SHF_ALLOC ]
32     AddressAlign:    0x8
33     Content:         '0000000000000000'
34   - Name:            .comment
35     Type:            SHT_PROGBITS
36     Flags:           [ SHF_MERGE, SHF_STRINGS ]
37     AddressAlign:    0x1
38     EntSize:         0x1
39     Content:         00636C616E672076657273696F6E2031372E302E30202868747470733A2F2F6769746875622E636F6D2F6C6C766D2F6C6C766D2D70726F6A6563742E67697420333130616161633834363336656336633933383739633138643933653332663537623264383938362900
40   - Name:            .note.GNU-stack
41     Type:            SHT_PROGBITS
42     AddressAlign:    0x1
43   - Name:            .rela.data
44     Type:            SHT_RELA
45     Flags:           [ SHF_INFO_LINK ]
46     Link:            .symtab
47     AddressAlign:    0x8
48     Info:            .data
49     Relocations:
50       - Symbol:          x
51         Type:            R_AARCH64_ABS32
52   - Name:            .llvm_addrsig
53     Type:            SHT_LLVM_ADDRSIG
54     Flags:           [ SHF_EXCLUDE ]
55     Link:            .symtab
56     AddressAlign:    0x1
57     Symbols:         [ x ]
58   - Type:            SectionHeaderTable
59     Sections:
60       - Name:            .strtab
61       - Name:            .text
62       - Name:            .data
63       - Name:            .rela.data
64       - Name:            .comment
65       - Name:            .note.GNU-stack
66       - Name:            .llvm_addrsig
67       - Name:            .symtab
68 Symbols:
69   - Name:            hw.c
70     Type:            STT_FILE
71     Index:           SHN_ABS
72   - Name:            '$x.0'
73     Section:         .text
74   - Name:            '$d.1'
75     Section:         .data
76   - Name:            '$d.2'
77     Section:         .comment
78   - Name:            main
79     Type:            STT_FUNC
80     Section:         .text
81     Binding:         STB_GLOBAL
82     Size:            0x8
83   - Name:            xptr
84     Type:            STT_OBJECT
85     Section:         .data
86     Binding:         STB_GLOBAL
87     Size:            0x8
88   - Name:            x
89     Binding:         STB_GLOBAL
90 ...