1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objcopy %t %t2
3# RUN: llvm-readobj --sections %t2 | FileCheck %s
4
5## Check we have the correct size of the .shstrtab section
6## after the strings tail merge optimization.
7
8# CHECK:      Name: .shstrtab
9# CHECK-NEXT: Type: SHT_STRTAB
10# CHECK-NEXT: Flags [
11# CHECK-NEXT: ]
12# CHECK-NEXT: Address:
13# CHECK-NEXT: Offset:
14# CHECK-NEXT: Size: 28
15
16!ELF
17FileHeader:
18  Class:           ELFCLASS64
19  Data:            ELFDATA2LSB
20  Type:            ET_REL
21  Machine:         EM_X86_64
22Sections:
23  - Name:            .bar
24    Type:            SHT_PROGBITS
25    Flags:           [ ]
26  - Name:            .foo.bar
27    Type:            SHT_PROGBITS
28    Flags:           [ ]
29