1 ## Show that llvm-sizes works correctly on a typical ELF input for sysv
2 ## format. It also shows that the formatting is correct.
4 ## FIXME: The rules demonstrated by this test are not quite what GNU size
5 ## follows. See https://bugs.llvm.org/show_bug.cgi?id=42934.
7 # RUN: yaml2obj %s > %t.o
8 # RUN: llvm-size --format=sysv %t.o \
9 # RUN: | FileCheck %s --match-full-lines --strict-whitespace -DFILE=%t.o --implicit-check-not={{.}}
10 # RUN: llvm-size -A %t.o \
11 # RUN: | FileCheck %s --match-full-lines --strict-whitespace -DFILE=%t.o --implicit-check-not={{.}}
14 # CHECK-NEXT:section size addr
15 # CHECK-NEXT:.progbits 1 2097152
16 # CHECK-NEXT:.symtab_shndx 4 524288
17 # CHECK-NEXT:.hash 64 65536
18 # CHECK-NEXT:.dynamic 128 32768
19 # CHECK-NEXT:.note 256 16384
20 # CHECK-NEXT:.nobits 512 8192
21 # CHECK-NEXT:.shlib 2048 2048
22 # CHECK-NEXT:.dynsym 4096 1024
23 # CHECK-NEXT:.init_array 8192 512
24 # CHECK-NEXT:.fini_array 16384 256
25 # CHECK-NEXT:.preinit_array 32768 128
26 # CHECK-NEXT:.group 65536 64
27 # CHECK-NEXT:.relr 131072 32
28 # CHECK-NEXT:.os_specific 262144 16
29 # CHECK-NEXT:.proc_specific 524288 8
30 # CHECK-NEXT:.user_specific 1048576 4
31 # CHECK-NEXT:Total 2096069
50 Type: SHT_SYMTAB_SHNDX
56 ## .symtab's size has to be based on .symtab_shndx's size, hence the
57 ## size not following the pattern of the other sections.
101 - Name: .preinit_array
102 Type: SHT_PREINIT_ARRAY
119 - Name: .proc_specific
123 - Name: .user_specific