• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
12FileHeader:
13  Class:           ELFCLASS64
14  Data:            ELFDATA2LSB
15  Type:            ET_REL
16  Machine:         EM_X86_64
17Sections:
18  - Name:          .linkorder
19    Type:          SHT_PROGBITS
20    Flags:         [ SHF_LINK_ORDER ]
21    Link:          2
22  - Name:          .text
23    Type:          SHT_PROGBITS
24