Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / obj2yaml / ELF / reladyn-section-shinfo.yaml
blobec97688430d67c65d426bcc64e139a1ed1bb6cc3
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --sections %t | FileCheck %s
3 # RUN: obj2yaml %t | FileCheck %s --check-prefix=YAML
5 ## .rela.dyn is a dynamic relocation section that normally has
6 ## no value in sh_info field. Check we are able to use
7 ## yaml2obj/obj2yaml without needing to explicitly set it.
9 # CHECK:      Name: .rela.dyn
10 # CHECK-NEXT: Type: SHT_RELA
11 # CHECK-NEXT: Flags [
12 # CHECK-NEXT:   SHF_ALLOC
13 # CHECK-NEXT: ]
14 # CHECK-NEXT: Address:
15 # CHECK-NEXT: Offset:
16 # CHECK-NEXT: Size:
17 # CHECK-NEXT: Link:
18 # CHECK-NEXT: Info: 0
19 # CHECK-NEXT: AddressAlignment:
20 # CHECK-NEXT: EntrySize:
22 # YAML:      - Name:  .rela.dyn
23 # YAML-NEXT:   Type:  SHT_RELA
24 # YAML-NEXT:   Flags: [ SHF_ALLOC ]
25 # YAML-NEXT:   Link:  .dynsym
26 # YAML-NEXT: - Name:
28 --- !ELF
29 FileHeader:
30   Class: ELFCLASS64
31   Data:  ELFDATA2LSB
32   Type:  ET_DYN
33   Entry: 0x0000000000001000
34 Sections:
35   - Name:    .rela.dyn
36     Type:    SHT_RELA
37     Flags:   [ SHF_ALLOC ]
38     Link:    .dynsym
39 # Add at least one symbol to trigger the .dynsym emission.
40 DynamicSymbols:
41   - Name:    bar
42     Binding: STB_GLOBAL