xref: /llvm-project/lld/test/ELF/invalid/invalid-relocation-aarch64.test (revision e4ceb8f4217d9203ecd7134d5fe2bac6d49c724d)
1# REQUIRES: aarch64
2# RUN: yaml2obj %s -o %t.o
3# RUN: not ld.lld %t.o -o /dev/null 2>&1 | FileCheck %s
4# CHECK: error: unknown relocation (1024) against symbol foo
5# CHECK: error: unknown relocation (1025) against symbol foo
6
7!ELF
8FileHeader:
9  Class:           ELFCLASS64
10  Data:            ELFDATA2LSB
11  Type:            ET_REL
12  Machine:         EM_AARCH64
13Sections:
14  - Name:            .text
15    Type:            SHT_PROGBITS
16    Flags:           [ SHF_ALLOC ]
17  - Name:            .rela.text
18    Type:            SHT_RELA
19    Link:            .symtab
20    Info:            .text
21    Relocations:
22      - Symbol:          foo
23        Type:            0x400
24      - Symbol:          foo
25        Type:            0x401
26Symbols:
27  - Name:            foo
28    Section:         .text
29    Binding:         STB_GLOBAL
30