llvm-project/llvm/test/Object
George Rimar a1370877d7 [Object/llvm-readelf/llvm-readobj] - Improve error reporting when e_shstrndx is broken.
When e_shstrndx is broken, it is impossible to get a section name.
In this patch I improved the error message we show and 
added tests for Object and for llvm-readelf/llvm-readobj

Message was changed in two places:
1) llvm-readelf/llvm-readobj previously used a code from Object/ELF.h,
now they have a modified version of it (it has less checks and allows
dumping broken things).
2) Code in Object/ELF.h is still used for generic cases.

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

llvm-svn: 366203
2019-07-16 11:07:30 +00:00
..
AArch64 AArch64: support binutils-like things on arm64_32. 2019-05-14 11:25:44 +00:00
AMDGPU [AMDGPU] gfx908 target 2019-07-09 18:10:06 +00:00
ARM [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
Inputs [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
Lanai [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
Mips [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
RISCV [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
X86 [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
ar-create.test [libObject] Tweak expected error output from llvm-ar 2019-01-15 22:03:08 +00:00
ar-error.test [libObject] Tweak expected error output from llvm-ar 2019-01-15 22:03:08 +00:00
archive-darwin-duplicates.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
archive-delete.test
archive-error-tmp.txt
archive-extract-dir.test
archive-extract.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
archive-format.test [Object] Deduplicate long archive member names 2018-12-19 16:15:05 +00:00
archive-long-filenames-no-null-terminator.test
archive-long-index.test
archive-move.test
archive-pad.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
archive-replace-pos.test
archive-symtab.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
archive-thin-create.test
archive-thin-paths.test
archive-thin-read.test
archive-toc.test [llvm-ar] Use POSIX-specified timestamps for 'tv'. 2018-10-05 23:25:39 +00:00
archive-update.test
check_binary_output.ll
coff-archive-short.test
coff-archive.test
coff-empty-drectve.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
coff-invalid.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
coff-weak-externals.test
directory.ll
dllimport-globalref.ll
dllimport.ll
dyn-rel-relocation.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
dynamic-reloc.test
elf-invalid-phdr.test [Object/ELF.h] - Improve error reporting. 2019-07-05 11:28:49 +00:00
elf-reloc-no-sym.test
elf-unknown-type.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
invalid-alignment.test
invalid.test [Object/llvm-readelf/llvm-readobj] - Improve error reporting when e_shstrndx is broken. 2019-07-16 11:07:30 +00:00
kext.test
lit.local.cfg
macho-invalid.test [Object] Fix macho-invalid.test 2019-05-10 10:47:30 +00:00
mangle-ir.ll
mri-addlib.test
mri-addmod.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
mri-crlf.test
mri1.test
mri2.test
mri3.test
mri4.test
mri5.test
multi-module.ll
multiple-sections.yaml Change ELF tools to allow multiple sections per file. 2019-05-28 20:01:25 +00:00
nm-archive.test Attempt to fix nm-archive.test after r362798 2019-06-07 16:06:27 +00:00
nm-bitcode.test [Object] Fix reading objects created with -fembed-bitcode-marker 2019-03-21 21:01:31 +00:00
nm-darwin-m.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
nm-error.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
nm-irix6.test
nm-pe-image.test
nm-shared-object.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
nm-trivial-object.test Fix test case of llvm-nm using implicit a.out 2019-07-12 10:44:06 +00:00
nm-universal-binary.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
nm-weak-global-macho.test
no-section-header-string-table.test
no-section-table.test
obj2yaml.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
objc-imageinfo-coff.ll
objc-imageinfo-elf.ll
objc-imageinfo-macho.ll
objdump-export-list.test [llvm-objdump] Simplify PrintHelpMessage() logic 2019-04-16 02:37:29 +00:00
objdump-file-header.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
objdump-no-sectionheaders.test [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
objdump-private-headers.test
objdump-reloc-shared.test
objdump-relocations.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
objdump-section-content.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
objdump-sectionheaders.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
objdump-shndx.test [llvm-objdump] - Print relocation record in a GNU format. 2019-05-07 13:14:18 +00:00
objdump-symbol-table.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
pr25877.test
readobj-absent.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
readobj-elf-versioning.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
readobj-shared-object.test [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
relocation-executable.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
simple-archive.test
size-trivial-macho.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
stackmap-dump.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
wasm-bad-metadata-version.yaml [WebAssembly] Store section alignment as a power of 2 2019-01-16 01:34:48 +00:00
wasm-duplicate-name.test
wasm-invalid-file.yaml [WebAssembly] Object: Improve error messages on invalid section 2019-04-20 00:11:46 +00:00
wasm-invalid-section-order.test [WebAssembly] Check if the section order is correct 2018-12-15 00:58:12 +00:00
wasm-invalid-start.test
wasm-missing-version.test
wasm-relocs-and-producers.yaml [WebAssembly] Generalize section ordering constraints 2019-02-20 02:22:36 +00:00
wasm-string-outside-section.test
yaml2obj-coff-invalid-alignment.test
yaml2obj-coff-multi-doc.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-alignment.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-bits-endian.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-file-headers-with-e_flags.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-file-headers.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-multi-doc.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-rel-noref.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-rel.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-section-basic.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-section-invalid-size.yaml [yaml2obj/obj2yaml] - Make RawContentSection::Content and RawContentSection::Size optional 2019-06-10 12:43:18 +00:00
yaml2obj-elf-symbol-LocalGlobalWeak.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-symbol-basic.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-symbol-visibility.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-invalid.yaml
yaml2obj-readobj.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00