forked from OSchip/llvm-project
a7a447be0f
Imagine we have a YAML declaration of few sections: `foo1`, `<unnamed 2>`, `foo3`, `foo4`. To put them into segment we can do (1*): ``` Sections: - Section: foo1 - Section: foo4 ``` or we can use (2*): ``` Sections: - Section: foo1 - Section: foo3 - Section: foo4 ``` or (3*) : ``` Sections: - Section: foo1 ## "(index 2)" here is a name that we automatically created for a unnamed section. - Section: (index 2) - Section: foo3 - Section: foo4 ``` It looks really confusing that we don't have to list all of sections. At first I've tried to make this rule stricter and report an error when there is a gap (i.e. when a section is included into segment, but not listed explicitly). This did not work perfect, because such approach conflicts with unnamed sections/fills (see (3*)). This patch drops "Sections" key and introduces 2 keys instead: `FirstSec` and `LastSec`. Both are optional. Differential revision: https://reviews.llvm.org/D90458 |
||
---|---|---|
.. | ||
AArch64 | ||
AMDGPU | ||
ARM | ||
Inputs | ||
Lanai | ||
Mips | ||
RISCV | ||
X86 | ||
ar-create.test | ||
ar-error.test | ||
archive-darwin-duplicates.test | ||
archive-delete.test | ||
archive-error-tmp.txt | ||
archive-extract-dir.test | ||
archive-extract.test | ||
archive-format.test | ||
archive-long-filenames-no-null-terminator.test | ||
archive-long-index.test | ||
archive-malformed-object.test | ||
archive-move.test | ||
archive-pad.test | ||
archive-replace-pos.test | ||
archive-symtab.test | ||
archive-thin-create.test | ||
archive-thin-paths.test | ||
archive-thin-read.test | ||
archive-toc.test | ||
archive-unknown-filetype.test | ||
archive-update.test | ||
check_binary_output.ll | ||
coff-archive-short.test | ||
coff-archive.test | ||
coff-empty-drectve.test | ||
coff-invalid.test | ||
coff-weak-externals.test | ||
directory.ll | ||
dllimport-globalref.ll | ||
dllimport.ll | ||
dyn-rel-relocation.test | ||
dynamic-reloc.test | ||
elf-unknown-type.test | ||
invalid-alignment.test | ||
invalid.test | ||
kext.test | ||
macho-invalid.test | ||
mangle-ir.ll | ||
multi-module.ll | ||
multiple-sections.yaml | ||
nm-archive.test | ||
nm-bitcode.test | ||
nm-darwin-m.test | ||
nm-error.test | ||
nm-irix6.test | ||
nm-pe-image.test | ||
nm-shared-object.test | ||
nm-tapi-invalids.test | ||
nm-tapi.test | ||
nm-trivial-object.test | ||
nm-universal-binary.test | ||
nm-weak-global-macho.test | ||
obj2yaml.test | ||
objc-imageinfo-coff.ll | ||
objc-imageinfo-elf.ll | ||
objc-imageinfo-macho.ll | ||
objc-swift-mixed-imageinfo-macho.ll | ||
objdump-export-list.test | ||
objdump-no-sectionheaders.test | ||
objdump-private-headers.test | ||
objdump-relocations.test | ||
objdump-section-content.test | ||
objdump-sectionheaders.test | ||
objdump-symbol-table.test | ||
pr25877.test | ||
relocation-executable.test | ||
simple-archive.test | ||
size-trivial-macho.test | ||
stackmap-dump.test | ||
wasm-bad-metadata-version.yaml | ||
wasm-duplicate-name.test | ||
wasm-invalid-file.yaml | ||
wasm-invalid-section-order.test | ||
wasm-invalid-start.test | ||
wasm-missing-version.test | ||
wasm-relocs-and-producers.yaml | ||
wasm-string-outside-section.test | ||
yaml2obj-elf-rel-noref.yaml | ||
yaml2obj-elf-rel.yaml | ||
yaml2obj-readobj.test |