llvm-project/llvm/test/tools/yaml2obj
George Rimar 7a2e21d9f4 [yaml2obj] - Don't allow setting StOther and Other/Visibility at the same time.
This is a follow up discussed in the comments of D66583.

Currently, if for example, we have both StOther and Other set in YAML document for a symbol,
then yaml2obj reports an "unknown key 'Other'" error.
It happens because 'mapOptional()' is never called for 'Other/Visibility' in this case,
leaving those unhandled.

This message does not describe the reason of the error well. This patch fixes it.

Differential revision: https://reviews.llvm.org/D66642

llvm-svn: 370032
2019-08-27 09:58:39 +00:00
..
coff-arm64.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
coff-invalid-alignment.test [llvm/test/Object] - Cleanup and move out the yaml2obj tests. 2019-08-06 08:02:25 +00:00
coff-symbol-index.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
duplicate-section-names.test [yaml2elf] - Treat the SHN_UNDEF section as kind of regular section. 2019-07-23 07:38:44 +00:00
duplicate-symbol-names.test [yaml2obj/obj2yaml] - Allow having the symbols and sections with duplicated names. 2019-06-25 08:22:57 +00:00
dynamic-relocations.yaml [yaml2obj] - Lookup relocation symbols in dynamic symbol when .dynsym referenced. 2019-08-22 12:39:56 +00:00
dynamic-section-i386.test [yaml2obj] - Fix .dynamic section entries writing for 32bit targets. 2019-02-10 08:35:38 +00:00
dynamic-section-raw-content.yaml [llvm-readelf] - Allow dumping of the .dynamic section even if there is no PT_DYNAMIC header. 2019-05-29 10:31:46 +00:00
dynamic-section.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
dynamic-symbols.yaml [yaml2obj] - Lookup relocation symbols in dynamic symbol when .dynsym referenced. 2019-08-22 12:39:56 +00:00
dynsymtab-implicit-sections-size-content.yaml [yaml2obj/obj2yaml] - Make RawContentSection::Info Optional<> 2019-06-19 08:57:38 +00:00
dynsymtab-shlink.yaml [yaml2elf] - Check we are able to set custom sh_link for .symtab/.dynsym 2019-06-11 10:00:51 +00:00
elf-abiversion.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
elf-class-endianness.test [llvm/test/Object] - Cleanup and move out the yaml2obj tests. 2019-08-06 08:02:25 +00:00
elf-comdat-broken-info.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
elf-comdat-broken.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
elf-custom-null-section.yaml Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections." 2019-07-25 10:19:23 +00:00
elf-ent-size.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
elf-gnu-unique-symbols.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
elf-header-elfdatanone.yaml [yaml2obj] - Allow producing ELFDATANONE ELFs 2019-03-07 12:09:19 +00:00
elf-header-sh-fields.yaml [yaml2obj][tests] Fix overly restrictive od output check 2019-08-05 13:55:41 +00:00
elf-override-shoffset.yaml [yaml2obj][tests] Replace 8-byte `od` conversion with 1-byte conversion 2019-08-03 18:52:45 +00:00
elf-override-shsize.yaml [yaml2obj][tests] Replace 8-byte `od` conversion with 1-byte conversion 2019-08-03 18:52:45 +00:00
elf-sh-addralign.yaml [llvm/test/Object] - Cleanup and move out the yaml2obj tests. 2019-08-06 08:02:25 +00:00
elf-sht-symtab-shndx.yaml [llvm-readobj] - Remove deprecated unwrapOrError(Expected<T> EO). 2019-08-09 10:53:12 +00:00
elf-symbol-binding.yaml [llvm/test/Object] - Cleanup and move out the yaml2obj tests. 2019-08-06 08:02:25 +00:00
elf-symbol-stother.yaml [yaml2obj] - Don't allow setting StOther and Other/Visibility at the same time. 2019-08-27 09:58:39 +00:00
elf-symbol-visibility.yaml [llvm/test/Object] - Cleanup and move out the yaml2obj tests. 2019-08-06 08:02:25 +00:00
elf-symbols-binding-order.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
elf-symtab-shinfo.yaml Revert "Revert r363377: [yaml2obj] - Allow setting custom section types for implicit sections." 2019-06-14 14:25:34 +00:00
elf-symtab-shtype.yaml Revert "Revert r363377: [yaml2obj] - Allow setting custom section types for implicit sections." 2019-06-14 14:25:34 +00:00
empty-or-invalid-doc.yaml Fixes failing test cases on Windows for rL368119 2019-08-07 03:18:23 +00:00
empty-symbols.yaml
explicit-dynsym-no-dynstr.yaml Revert "Revert r363377: [yaml2obj] - Allow setting custom section types for implicit sections." 2019-06-14 14:25:34 +00:00
implicit-sections-addr.yaml [yaml2obj] - Allow setting the custom Address for .strtab 2019-06-14 11:13:32 +00:00
implicit-sections-info.yaml [yaml2obj/obj2yaml] - Make RawContentSection::Info Optional<> 2019-06-19 08:57:38 +00:00
implicit-sections-types.test Revert "Revert r363377: [yaml2obj] - Allow setting custom section types for implicit sections." 2019-06-14 14:25:34 +00:00
implicit-sections.test [yaml2obj] - Change how we handle implicit sections. 2019-06-05 13:16:53 +00:00
invalid-docnum.test Fixes failing test cases on Windows for rL368119 2019-08-07 03:18:23 +00:00
invalid-symboless-relocation.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
invalid-yaml.yaml [llvm/test/Object] - Cleanup and move out the yaml2obj tests. 2019-08-06 08:02:25 +00:00
invalid_output_file.test
lit.local.cfg [obj2yaml][yaml2obj]Locate all .yaml and .test tests 2019-02-20 15:13:44 +00:00
local-symbols.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
minidump-raw-stream-small-size.yaml [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
minidump-systeminfo-other-long.yaml [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
minidump-systeminfo-other-not-hex.yaml [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
minidump-systeminfo-other-short.yaml [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
minidump-systeminfo-x86-long.yaml [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
minidump-systeminfo-x86-short.yaml [ObjectYAML] Add basic minidump generation support 2019-03-22 14:47:26 +00:00
missing_document_tag.yaml Fixes failing test cases on Windows for rL368119 2019-08-07 03:18:23 +00:00
multi-doc.test Fixes failing test cases on Windows for rL368119 2019-08-07 03:18:23 +00:00
program-header-align.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
program-header-nobits.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
program-header-size-offset.yaml [yaml2obj]Allow explicit setting of p_filesz, p_memsz, and p_offset 2019-03-15 10:35:27 +00:00
program-header.yaml [yaml2obj] - Report when unknown section is referenced from program header declaration block. 2019-05-01 09:45:55 +00:00
reloc-sec-info.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
relocation-explicit-symbol-index.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
relocation-missing-symbol.yaml [yaml2obj]Allow explicit symbol indexes in relocations and emit error for bad names 2019-03-12 17:00:25 +00:00
section-link.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
section-ordering.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
section-size-content.yaml Fixes failing test cases on Windows for rL368119 2019-08-07 03:18:23 +00:00
section-type.yaml [yaml2obj][obj2yaml] Remove section type range markers from allowed mappings and support hex values 2019-02-19 16:22:21 +00:00
strtab-implicit-sections-flags.yaml [yaml2obj] - Allow setting cutom Flags for implicit sections. 2019-06-14 11:01:14 +00:00
strtab-implicit-sections-size-content.yaml [yaml2obj/obj2yaml] - Make RawContentSection::Content and RawContentSection::Size optional 2019-06-10 12:43:18 +00:00
symbol-index-invalid.yaml
symbol-index.yaml [llvm-nm][llvm-readelf] Avoid single-dash -long-option in tests 2019-04-27 16:12:14 +00:00
symbol-name.yaml [yaml2obj] - Allow setting st_value explicitly for Symbol. 2019-05-07 12:10:51 +00:00
symbol-type.yaml Print reasonable representations of type names in llvm-nm, readelf and readobj 2019-08-09 16:54:51 +00:00
symboless-relocation.yaml
symtab-implicit-sections-flags.yaml Revert "Revert r363377: [yaml2obj] - Allow setting custom section types for implicit sections." 2019-06-14 14:25:34 +00:00
symtab-implicit-sections-size-content.yaml [yaml2obj/obj2yaml] - Make RawContentSection::Info Optional<> 2019-06-19 08:57:38 +00:00
symtab-shlink.yaml [yaml2elf] - Check we are able to set custom sh_link for .symtab/.dynsym 2019-06-11 10:00:51 +00:00
unnamed-section.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
unsupported_document_tag.yaml
verdef-section.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
verneed-section.yaml [llvm-readobj] Should declare `ListScope` for `verneed` entries. 2019-04-10 12:47:21 +00:00
versym-section.yaml [yaml2obj] - Allow overriding sh_entsize for SHT_GNU_versym sections. 2019-08-05 13:54:35 +00:00