• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objcopy %t %t2 --add-symbol='foo=1' --add-symbol='foofoo=2'
3# RUN: llvm-readobj --sections %t2 | FileCheck %s
4
5## Check we have the correct size of the .strtab section
6## after the strings tail merge optimization.
7
8# CHECK:      Name: .strtab
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: 8
15
16!ELF
17FileHeader:
18  Class:           ELFCLASS64
19  Data:            ELFDATA2LSB
20  Type:            ET_REL
21  Machine:         EM_X86_64
22