[ARM] Remove declaration of unimplemented function. NFC.
[llvm-complete.git] / test / tools / llvm-size / elf-sysv.test
blob2ce909a301367a37d2b64dc192767f574b66cf7c
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={{.}}
13 #      CHECK:[[FILE]]  :
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
33 !ELF
34 FileHeader:
35   Class:   ELFCLASS64
36   Data:    ELFDATA2LSB
37   Type:    ET_REL
38   Machine: EM_X86_64
39 Sections:
40   - Name:    .progbits
41     Type:    SHT_PROGBITS
42     ShSize:  0x1
43     Address: 0x200000
44   - Name:    .strtab
45     Type:    SHT_STRTAB
46     ShSize:  0x2
47     Address: 0x100000
48   - Name:    .symtab_shndx
49     Link:    .symtab
50     Type:    SHT_SYMTAB_SHNDX
51     ShSize:  0x4
52     Address: 0x80000
53     Entries:
54   - Name:    .symtab
55     Type:    SHT_SYMTAB
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.
58     ShSize:  0x18
59     Address: 0x40000
60   - Name:    .rela
61     Type:    SHT_RELA
62     ShSize:  0x20
63     Address: 0x20000
64   - Name:    .hash
65     Type:    SHT_HASH
66     ShSize:  0x40
67     Address: 0x10000
68   - Name:    .dynamic
69     Type:    SHT_DYNAMIC
70     ShSize:  0x80
71     Address: 0x8000
72   - Name:    .note
73     Type:    SHT_NOTE
74     ShSize:  0x100
75     Address: 0x4000
76   - Name:    .nobits
77     Type:    SHT_NOBITS
78     ShSize:  0x200
79     Address: 0x2000
80   - Name:    .rel
81     Type:    SHT_REL
82     ShSize:  0x400
83     Address: 0x1000
84   - Name:    .shlib
85     Type:    SHT_SHLIB
86     ShSize:  0x800
87     Address: 0x800
88   - Name:    .dynsym
89     Type:    SHT_DYNSYM
90     ShSize:  0x1000
91     Address: 0x400
92   - Name:    .init_array
93     Type:    SHT_INIT_ARRAY
94     ShSize:  0x2000
95     Address: 0x200
96   - Name:    .fini_array
97     Type:    SHT_FINI_ARRAY
98     ShSize:  0x4000
99     Address: 0x100
100   - Name:    .preinit_array
101     Type:    SHT_PREINIT_ARRAY
102     ShSize:  0x8000
103     Address: 0x80
104   - Name:    .group
105     Type:    SHT_GROUP
106     ShSize:  0x10000
107     Address: 0x40
108     Info:    0
109     Members:
110   - Name:    .relr
111     Type:    SHT_RELR
112     ShSize:  0x20000
113     Address: 0x20
114   - Name:    .os_specific
115     Type:    0x61234567
116     ShSize:  0x40000
117     Address: 0x10
118   - Name:    .proc_specific
119     Type:    0x71234567
120     ShSize:  0x80000
121     Address: 0x8
122   - Name:    .user_specific
123     Type:    0x81234567
124     ShSize:  0x100000
125     Address: 0x4
126   - Name:    .null
127     Type:    SHT_NULL
128     ShSize:  0x200000
129     Address: 0x2