Lines Matching full:section
1 ## Check we can use "SectionHeaderTable" tag to reorder section header entries.
4 ## section without the unique prefix. The section header table describes sections
6 # RUN: yaml2obj %s --docnum=1 -o %t1 -DSEC1=".section (1)" -DSEC2=".section (2)" -DSEC3=".section.f…
7 # RUN: llvm-readelf --section-headers %t1 | FileCheck %s --check-prefix=NO-OP
9 # NO-OP: Section Headers:
12 # NO-OP-NEXT: [ 1] .section PROGBITS 0000000000000000 000040 000010 00 0 0 0
13 # NO-OP-NEXT: [ 2] .section PROGBITS 0000000000000000 000050 000020 00 0 0 0
14 # NO-OP-NEXT: [ 3] .section.foo PROGBITS 0000000000000000 0000a0 000040 00 0 0 0
24 - Name: .section (1)
27 - Name: .section (2)
34 - Name: .section.foo
46 # RUN: yaml2obj %s -o %t2 -DSEC3=".section (1)" -DSEC2=".section (2)" -DSEC1=".section.foo"
47 # RUN: llvm-readelf --section-headers %t2 | FileCheck %s --check-prefix=REORDERED
49 # REORDERED: Section Headers:
52 # REORDERED-NEXT: [ 1] .section.foo PROGBITS 0000000000000000 0000a0 000040 00 0 0 0
53 # REORDERED-NEXT: [ 2] .section PROGBITS 0000000000000000 000050 000020 00 0 0 0
54 # REORDERED-NEXT: [ 3] .section PROGBITS 0000000000000000 000040 000010 00 0 0 0
58 ## Show we report proper errors when the section header description:
59 ## a) contains a repeated section name.
60 ## b) omits any section that exists.
61 ## c) contains a non-existent section.
62 # RUN: not yaml2obj %s -o /dev/null -DSEC1=".section.foo" -DSEC2="unknown" -DSEC3=".section.foo" 2>…
64 # d) contains a repeated implicit section name.
69 # ERR1: error: repeated section name: '.section.foo' in the section header description
70 # ERR1-NEXT: error: section '.section (1)' should be present in the 'Sections' or 'Excluded' lists
71 # ERR1-NEXT: error: section '.section (2)' should be present in the 'Sections' or 'Excluded' lists
72 # ERR1-NEXT: error: section header contains undefined section 'unknown'
74 # ERR2: error: repeated section name: '.strtab' in the section header description
75 # ERR2-NEXT: error: repeated section name: '.shstrtab' in the section header description
76 # ERR2-NEXT: error: section '.section (1)' should be present in the 'Sections' or 'Excluded' lists
77 # ERR2-NEXT: error: section '.section (2)' should be present in the 'Sections' or 'Excluded' lists
78 # ERR2-NEXT: error: section '.section.foo' should be present in the 'Sections' or 'Excluded' lists
79 # ERR2-NEXT: error: section header contains undefined section '.filler'
81 ## Check that when the an empty "Sections" list is used, we do not create an empty section header t…
84 # EMPTY-SECTIONS: error: section '.foo' should be present in the 'Sections' or 'Excluded' lists
85 # EMPTY-SECTIONS-NEXT: error: section '.strtab' should be present in the 'Sections' or 'Excluded' l…
86 # EMPTY-SECTIONS-NEXT: error: section '.shstrtab' should be present in the 'Sections' or 'Excluded'…
99 ## Test that we are able to use "NoHeaders" property to produce an empty section header table.
103 # NO-HEADERS-TRUE: Start of section headers: 0 (bytes into file)
104 # NO-HEADERS-TRUE: Size of section headers: 64 (bytes)
105 # NO-HEADERS-TRUE: Number of section headers: 0
106 # NO-HEADERS-TRUE: Section header string table index: 0
124 # NO-HEADERS-FALSE: Start of section headers: 96 (bytes into file)
125 # NO-HEADERS-FALSE: Size of section headers: 64 (bytes)
126 # NO-HEADERS-FALSE: Number of section headers: 4
127 # NO-HEADERS-FALSE: Section header string table index: 3
129 # NO-HEADERS-FALSE: Section Headers:
157 # NO-VALUE: SectionHeaderTable can't be empty. Use 'NoHeaders' key to drop the section header table
175 ## fields even when we do not produce section headers.
179 # NO-HEADERS-OVERRIDE: Start of section headers: 2 (bytes into file)
180 # NO-HEADERS-OVERRIDE: Number of section headers: 3
181 # NO-HEADERS-OVERRIDE: Section header string table index: 4
194 ## Check that section indices are updated properly in other places when we
195 ## reorder sections in the section header table.
197 # RUN: llvm-readelf --section-headers --symbols %t5 | FileCheck %s --check-prefix=INDICES-A
199 # RUN: llvm-readelf --section-headers --symbols %t6 | FileCheck %s --check-prefix=INDICES-B
247 Section: .foo
249 Section: .bar
252 ## the .shstrtab section implicitly and don't write the data of the
253 ## section header table to the file.
266 ## We don't want any implicit sections to be added after the .foo section,
270 ## Nothing should be emitted after the following section.
275 ## for writing the section header table.