• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: obj2yaml %t | FileCheck %s
3
4## Check we are able to yamalize the SHT_GNU_versym section.
5
6# CHECK:      --- !ELF
7# CHECK-NEXT: FileHeader:
8# CHECK-NEXT:   Class: ELFCLASS64
9# CHECK-NEXT:   Data:  ELFDATA2LSB
10# CHECK-NEXT:   Type:  ET_EXEC
11# CHECK-NEXT:   Entry: 0x201000
12# CHECK-NEXT: Sections:
13# CHECK-NEXT:   - Name:            .gnu.version
14# CHECK-NEXT:     Type:            SHT_GNU_versym
15# CHECK-NEXT:     Flags:           [ SHF_ALLOC ]
16# CHECK-NEXT:     Address:         0x200210
17# CHECK-NEXT:     Link:            .dynsym
18# CHECK-NEXT:     AddressAlign:    0x2
19# CHECK-NEXT:     EntSize:         0x2
20# CHECK-NEXT:     Entries:         [ 0, 3, 4 ]
21# CHECK-NEXT:   - Name:
22# CHECK:      DynamicSymbols:
23# CHECK-NEXT:   - Name:    f1
24# CHECK-NEXT:     Binding: STB_GLOBAL
25# CHECK-NEXT:   - Name:    f2
26# CHECK-NEXT:     Binding: STB_GLOBAL
27
28--- !ELF
29FileHeader:
30  Class: ELFCLASS64
31  Data:  ELFDATA2LSB
32  Type:  ET_EXEC
33  Entry: 0x201000
34Sections:
35  - Name:            .gnu.version
36    Type:            SHT_GNU_versym
37    Flags:           [ SHF_ALLOC ]
38    Address:         0x200210
39    Link:            .dynsym
40    AddressAlign:    0x2
41    EntSize:         0x2
42    Entries:         [ 0, 3, 4 ]
43DynamicSymbols:
44  - Name:    f1
45    Binding: STB_GLOBAL
46  - Name:    f2
47    Binding: STB_GLOBAL
48...
49