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
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
22 SectionHeaderStringTable: .strtab
26 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
28 Content: E0031F2AC0035FD6
31 Flags: [ SHF_WRITE, SHF_ALLOC ]
33 Content: '0000000000000000'
36 Flags: [ SHF_MERGE, SHF_STRINGS ]
39 Content: 00636C616E672076657273696F6E2031372E302E30202868747470733A2F2F6769746875622E636F6D2F6C6C766D2F6C6C766D2D70726F6A6563742E67697420333130616161633834363336656336633933383739633138643933653332663537623264383938362900
40 - Name: .note.GNU-stack
45 Flags: [ SHF_INFO_LINK ]
53 Type: SHT_LLVM_ADDRSIG
54 Flags: [ SHF_EXCLUDE ]
58 - Type: SectionHeaderTable
65 - Name: .note.GNU-stack