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
/
linkorder-forward-ref.test
blob
2e00516001fc2b369c028673ef56f3538c3fd5d4
1
# REQUIRES: x86
2
# RUN: yaml2obj %s -o %t.o
3
# RUN: ld.lld %t.o -o %t
4
# RUN: llvm-readelf -S %t | FileCheck %s
5
6
## Test that we accept forward sh_link references.
7
8
# CHECK: .linkorder
9
# CHECK: .text
10
11
--- !ELF
12
FileHeader:
13
Class: ELFCLASS64
14
Data: ELFDATA2LSB
15
Type: ET_REL
16
Machine: EM_X86_64
17
Sections:
18
- Name: .linkorder
19
Type: SHT_PROGBITS
20
Flags: [ SHF_LINK_ORDER ]
21
Link: 2
22
- Name: .text
23
Type: SHT_PROGBITS