repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
lld
/
test
/
ELF
/
invalid
/
invalid-relocation-aarch64.test
blob
8921fbd77d173ad6db13bde165915fb1b1099205
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
8
FileHeader:
9
Class: ELFCLASS64
10
Data: ELFDATA2LSB
11
Type: ET_REL
12
Machine: EM_AARCH64
13
Sections:
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
26
Symbols:
27
- Name: foo
28
Section: .text
29
Binding: STB_GLOBAL