[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / tools / obj2yaml / elf-reladyn-section-shinfo.yaml
blob0f2906470f3dedd7f204af927c3a50f2ef43db52
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:   EntSize: 0x0000000000000018
28 --- !ELF
29 FileHeader:
30   Class:   ELFCLASS64
31   Data:    ELFDATA2LSB
32   Type:    ET_DYN
33   Machine: EM_X86_64
34   Entry:   0x0000000000001000
35 Sections:
36   - Name:    .rela.dyn
37     Type:    SHT_RELA
38     Flags:   [ SHF_ALLOC ]
39     Link:    .dynsym
40     EntSize: 0x0000000000000018
41 # Add at least one symbol to trigger the .dynsym emission.
42 DynamicSymbols:
43   - Name:    bar
44     Binding: STB_GLOBAL