29 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objcopy %t %t23# RUN: llvm-readobj --sections %t2 | FileCheck %s4 5## Check we have the correct size of the .shstrtab section6## after the strings tail merge optimization.7 8# CHECK: Name: .shstrtab9# CHECK-NEXT: Type: SHT_STRTAB10# CHECK-NEXT: Flags [11# CHECK-NEXT: ]12# CHECK-NEXT: Address:13# CHECK-NEXT: Offset:14# CHECK-NEXT: Size: 2815 16!ELF17FileHeader:18 Class: ELFCLASS6419 Data: ELFDATA2LSB20 Type: ET_REL21 Machine: EM_X86_6422Sections:23 - Name: .bar24 Type: SHT_PROGBITS25 Flags: [ ]26 - Name: .foo.bar27 Type: SHT_PROGBITS28 Flags: [ ]29