brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · efceb7d Raw
91 lines · yaml
1# Check success and failure cases of R_AARCH64_32 handling.2# This file contains a single R_AARCH64_ABS32 relocation. We expect the3# relocation to apply successfully when we assign x an address in the low4# 32-bits of the address space, and fail if we assign x an address outside that5# range.6 7# RUN: yaml2obj -o %t.o %s8# RUN: llvm-jitlink -abs x=0x12345678 -noexec -check=%s %t.o9# RUN: not llvm-jitlink -abs x=0x123456789 -noexec %t.o 2>&1 | \10# RUN:   FileCheck -check-prefix=CHECK-ERROR %s11 12# jitlink-check: *{8}xptr = x13 14# CHECK-ERROR: relocation target {{.*}} (x) is out of range of Pointer32 fixup15 16--- !ELF17FileHeader:18  Class:           ELFCLASS6419  Data:            ELFDATA2LSB20  Type:            ET_REL21  Machine:         EM_AARCH6422  SectionHeaderStringTable: .strtab23Sections:24  - Name:            .text25    Type:            SHT_PROGBITS26    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]27    AddressAlign:    0x428    Content:         E0031F2AC0035FD629  - Name:            .data30    Type:            SHT_PROGBITS31    Flags:           [ SHF_WRITE, SHF_ALLOC ]32    AddressAlign:    0x833    Content:         '0000000000000000'34  - Name:            .comment35    Type:            SHT_PROGBITS36    Flags:           [ SHF_MERGE, SHF_STRINGS ]37    AddressAlign:    0x138    EntSize:         0x139    Content:         00636C616E672076657273696F6E2031372E302E30202868747470733A2F2F6769746875622E636F6D2F6C6C766D2F6C6C766D2D70726F6A6563742E6769742033313061616163383436333665633663393338373963313864393365333266353762326438393836290040  - Name:            .note.GNU-stack41    Type:            SHT_PROGBITS42    AddressAlign:    0x143  - Name:            .rela.data44    Type:            SHT_RELA45    Flags:           [ SHF_INFO_LINK ]46    Link:            .symtab47    AddressAlign:    0x848    Info:            .data49    Relocations:50      - Symbol:          x51        Type:            R_AARCH64_ABS3252  - Name:            .llvm_addrsig53    Type:            SHT_LLVM_ADDRSIG54    Flags:           [ SHF_EXCLUDE ]55    Link:            .symtab56    AddressAlign:    0x157    Symbols:         [ x ]58  - Type:            SectionHeaderTable59    Sections:60      - Name:            .strtab61      - Name:            .text62      - Name:            .data63      - Name:            .rela.data64      - Name:            .comment65      - Name:            .note.GNU-stack66      - Name:            .llvm_addrsig67      - Name:            .symtab68Symbols:69  - Name:            hw.c70    Type:            STT_FILE71    Index:           SHN_ABS72  - Name:            '$x.0'73    Section:         .text74  - Name:            '$d.1'75    Section:         .data76  - Name:            '$d.2'77    Section:         .comment78  - Name:            main79    Type:            STT_FUNC80    Section:         .text81    Binding:         STB_GLOBAL82    Size:            0x883  - Name:            xptr84    Type:            STT_OBJECT85    Section:         .data86    Binding:         STB_GLOBAL87    Size:            0x888  - Name:            x89    Binding:         STB_GLOBAL90...91