Lines Matching full:section

6 # RUN: llvm-readobj --elf-section-groups %t.o | FileCheck %s
7 # RUN: llvm-readobj --elf-section-groups %t.o --elf-output-style=JSON --pretty-print | FileCheck %s…
18 # CHECK-NEXT: Section(s) in group [
30 # CHECK-NEXT: Section(s) in group [
36 # GNU: COMDAT group section [ 1] `.group' [foo] contains 2 sections:
40 # GNU: COMDAT group section [ 2] `.group1' [bar] contains 2 sections:
142 Section: .text.foo
145 Section: .text.bar
148 ## Check that we report a warning and continue dumping when a section is included
152 # RUN: llvm-readobj --section-groups %t.dup.o 2>&1 | FileCheck %s -DFILE=%t.dup.o --check-prefix=DU…
153 # RUN: llvm-readelf --section-groups %t.dup.o 2>&1 | FileCheck %s -DFILE=%t.dup.o --check-prefix=DU…
162 # DUP-LLVM-NEXT: Section(s) in group [
174 # DUP-LLVM-NEXT: Section(s) in group [
175 …EXT: warning: '[[FILE]]': section with index 3, included in the group section with index 1, was al…
181 # DUP-GNU: COMDAT group section [ 1] `.group' [foo] contains 2 sections:
186 # DUP-GNU: COMDAT group section [ 2] `.group1' [bar] contains 2 sections:
188 …EXT: warning: '[[FILE]]': section with index 3, included in the group section with index 1, was al…
193 ## In this case the index of the string table section, linked to the symbol table used by a group s…
194 ## is broken (section does not exist).
198 # RUN: llvm-readobj --section-groups %t.symtab.o 2>&1 | \
200 # RUN: llvm-readelf --section-groups %t.symtab.o 2>&1 | \
204 …'[[FILE]]': unable to get the string table for SHT_SYMTAB section with index 7: invalid section in…
212 # SYMTAB-LLVM-NEXT: Section(s) in group [
224 # SYMTAB-LLVM-NEXT: Section(s) in group [
231 …'[[FILE]]': unable to get the string table for SHT_SYMTAB section with index 7: invalid section in…
233 # SYMTAB-GNU-NEXT: COMDAT group section [ 1] `.group' [<?>] contains 2 sections:
238 # SYMTAB-GNU-NEXT: COMDAT group section [ 2] `.group1' [<?>] contains 2 sections:
244 ## In the first case we link the group section to the section with index 255, which does not exist.
246 ## In the second case we link the SHT_GROUP section to itself. This documents that we don't check t…
247 ## type of the linked section (we assume it is the symbol table) and checks that we report a warning
251 # RUN: llvm-readobj --section-groups %t.symtab2.o 2>&1 | \
253 # RUN: llvm-readelf --section-groups %t.symtab2.o 2>&1 | \
257 … '[[FILE]]': unable to get the symbol table for SHT_GROUP section with index 1: invalid section in…
258 … '[[FILE]]': unable to get the signature symbol for SHT_GROUP section with index 2: section [index…
266 # SIGNATURE-LLVM: Section(s) in group [
278 # SIGNATURE-LLVM: Section(s) in group [
285 … '[[FILE]]': unable to get the symbol table for SHT_GROUP section with index 1: invalid section in…
286 … '[[FILE]]': unable to get the signature symbol for SHT_GROUP section with index 2: section [index…
288 # SIGNATURE-GNU-NEXT: COMDAT group section [ 1] `.group' [<?>] contains 2 sections:
293 # SIGNATURE-GNU-NEXT: COMDAT group section [ 2] `.group1' [<?>] contains 2 sections:
298 ## Check we report a warning when the content of the group section is empty or can't be read.
299 ## In both cases we are unable to read the section group flag and dump it as 0.
302 # RUN: llvm-readobj --section-groups %t.secsize.o 2>&1 | \
304 # RUN: llvm-readelf --section-groups %t.secsize.o 2>&1 | \
308 … warning: '[[FILE]]': unable to read the section group flag from the SHT_GROUP section with index …
309 …rning: '[[FILE]]': unable to get the content of the SHT_GROUP section with index 2: section [index…
317 # CONTENT-LLVM-NEXT: Section(s) in group [
327 # CONTENT-LLVM-NEXT: Section(s) in group [
332 … warning: '[[FILE]]': unable to read the section group flag from the SHT_GROUP section with index …
333 …rning: '[[FILE]]': unable to get the content of the SHT_GROUP section with index 2: section [index…
335 # CONTENT-GNU-NEXT: (unknown) group section [ 1] `.group' [foo] contains 0 sections:
338 # CONTENT-GNU-NEXT: (unknown) group section [ 2] `.group1' [bar] contains 0 sections:
341 ## Check that we emit a warning when we are unable to read the group section name or the name of a …
344 # RUN: llvm-readobj --section-groups %t.name.o 2>&1 | \
346 # RUN: llvm-readelf --section-groups %t.name.o 2>&1 | \
350 …ame of SHT_GROUP section with index 1: a section [index 1] has an invalid sh_name (0xaaaa) offset …
351 … of SHT_PROGBITS section with index 5: a section [index 5] has an invalid sh_name (0xbbbb) offset …
359 # NAME-LLVM-NEXT: Section(s) in group [
371 # NAME-LLVM-NEXT: Section(s) in group [
378 …ame of SHT_GROUP section with index 1: a section [index 1] has an invalid sh_name (0xaaaa) offset …
379 … of SHT_PROGBITS section with index 5: a section [index 5] has an invalid sh_name (0xbbbb) offset …
381 # NAME-GNU-NEXT: COMDAT group section [ 1] `<?>' [foo] contains 2 sections:
386 # NAME-GNU-NEXT: COMDAT group section [ 2] `.group1' [bar] contains 2 sections:
391 ## Check we report a warning then the section index of a section group member is invalid.
394 # RUN: llvm-readobj --section-groups %t.member.index.o 2>&1 | \
396 # RUN: llvm-readelf --section-groups %t.member.index.o 2>&1 | \
400 …g: '[[FILE]]': unable to get the section with index 238 when dumping the SHT_GROUP section with in…
401 …g: '[[FILE]]': unable to get the section with index 255 when dumping the SHT_GROUP section with in…
409 # MEMBER-LLVM-NEXT: Section(s) in group [
421 # MEMBER-LLVM-NEXT: Section(s) in group [
428 …g: '[[FILE]]': unable to get the section with index 238 when dumping the SHT_GROUP section with in…
429 …g: '[[FILE]]': unable to get the section with index 255 when dumping the SHT_GROUP section with in…
431 # MEMBER-GNU-NEXT: COMDAT group section [ 1] `.group' [foo] contains 2 sections:
436 # MEMBER-GNU-NEXT: COMDAT group section [ 2] `.group1' [bar] contains 2 sections:
446 # RUN: llvm-readobj --section-groups %t.signame.o 2>&1 | \
448 # RUN: llvm-readelf --section-groups %t.signame.o 2>&1 | \
456 # SIGNAME1-GNU: COMDAT group section [ 1] `.group' [] contains 2 sections:
457 # SIGNAME1-GNU: COMDAT group section [ 2] `.group1' [<?>] contains 2 sections:
462 # RUN: llvm-readobj --section-groups %t.signame2.o 2>&1 | \
464 # RUN: llvm-readelf --section-groups %t.signame2.o 2>&1 | \
467 …]': unable to get the string table for SHT_SYMTAB section with index 7: SHT_STRTAB string table se…
472 # SIGNAME2-GNU: COMDAT group section [ 1] `.group' [<?>] contains 2 sections:
473 # SIGNAME2-GNU: COMDAT group section [ 2] `.group1' [<?>] contains 2 sections: