1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 21:13:02 +02:00
llvm-mirror/test/Object/Inputs
Kevin Enderby 6e0594e553 Finish cleaning up most of the error handling in libObject’s MachOUniversalBinary
and its clients to use the new llvm::Error model for error handling.

Changed getAsArchive() from ErrorOr<...> to Expected<...> so now all
interfaces there use the new llvm::Error model for return values.

In the two places it had if (!Parent) this is actually a program error so changed
from returning errorCodeToError(object_error::parse_failed) to calling
report_fatal_error() with a message.

In getObjectForArch() added error messages to its two llvm::Error return values
instead of returning errorCodeToError(object_error::arch_not_found) with no
error message.

For the llvm-obdump, llvm-nm and llvm-size clients since the only binary files in
Mach-O Universal Binaries that are supported are Mach-O files or archives with
Mach-O objects, updated their logic to generate an error when a slice contains
something like an ELF binary instead of ignoring it. And added a test case for
that.

The last error stuff to be cleaned up for libObject’s MachOUniversalBinary is
the use of errorOrToExpected(Archive::create(ObjBuffer)) which needs
Archive::create() to be changed from ErrorOr<...> to Expected<...> first,
which I’ll work on next. 

llvm-svn: 274079
2016-06-28 23:16:13 +00:00
..
COFF [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00
ELF
absolute.elf-x86-64
archive-test.a-coff-i386
archive-test.a-corrupt-symbol-table
archive-test.a-empty
archive-test.a-gnu-minimal
archive-test.a-gnu-no-symtab
archive-test.a-irix6-mips64el
coff_archive_short.lib
coff_archive.lib
coff-short-import-code
coff-short-import-data
common.coff-i386
corrupt-archive.a
corrupt-invalid-dynamic-table-offset.elf.x86-64
corrupt-invalid-dynamic-table-size.elf.x86-64
corrupt-invalid-dynamic-table-too-large.elf.x86-64
corrupt-invalid-phentsize.elf.x86-64
corrupt-invalid-relocation-size.elf.x86-64
corrupt-invalid-strtab.elf.x86-64
corrupt-invalid-virtual-addr.elf.x86-64 This reverts commit r260488 and r260489. 2016-02-16 14:17:48 +00:00
corrupt-version.elf-x86_64
corrupt.elf-x86-64
darwin-m-test1.mach0-armv7
darwin-m-test2.macho-i386
darwin-m-test3.macho-x86-64
dext-test.elf-mips64r2
dyn-rel.so.elf-mips [llvm-readobj][ELF] Teach llvm-readobj to show dynamic relocation in REL format 2016-01-16 22:40:09 +00:00
dynamic-reloc.so Add a testcase that would have found the bug in r263971. 2016-03-21 21:09:38 +00:00
elf-mip64-reloc.o
elf-reloc-no-sym.x86_64
elf-versioning-test.i386
elf-versioning-test.x86_64
elfver.S
elfver.script
evenlen
GNU.a
hello-world.elf-x86-64
hello-world.macho-x86_64
invalid-bad-rel-type.elf
invalid-bad-section-address.coff
invalid-section-index.elf
invalid-section-size.elf
invalid-sh_entsize.elf Change how readobj stores info about dynamic symbols. 2016-02-17 15:38:21 +00:00
invalid-strtab-non-null.elf
invalid-strtab-size.elf
invalid-strtab-type.elf
invalid-symbol-table-size.elf
invalid-xindex-size.elf
IsNAN.o
liblong_filenames.a
libsimple_archive.a
macho64-invalid-incomplete-load-command
macho64-invalid-incomplete-load-command.1 Produce another specific error message for a malformed Mach-O file when a load 2016-05-03 17:16:08 +00:00
macho64-invalid-incomplete-segment-load-command
macho64-invalid-no-size-for-sections
macho64-invalid-too-small-load-command
macho64-invalid-too-small-load-command.1 Produce another specific error message for a malformed Mach-O file when a load 2016-05-03 23:13:50 +00:00
macho64-invalid-too-small-segment-load-command
macho-archive-unsorted-x86_64.a
macho-archive-x86_64.a
macho-bad-archive1.a Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-17 17:10:12 +00:00
macho-bad-archive2.a Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-17 17:10:12 +00:00
macho-data-in-code.macho-thumbv7
macho-empty-kext-bundle-x86-64
macho-hello-g.macho-x86_64
macho-invalid-bad-symbol-index
macho-invalid-fat Change all but the last ErrorOr<...> use for MachOUniversalBinary to Expected<...> to 2016-06-27 21:39:39 +00:00
macho-invalid-fat.obj.elf-x86_64 Finish cleaning up most of the error handling in libObject’s MachOUniversalBinary 2016-06-28 23:16:13 +00:00
macho-invalid-header
macho-invalid-no-size-for-sections
macho-invalid-section-index-getSectionRawName
macho-invalid-symbol-name-past-eof
macho-invalid-too-small-load-command
macho-invalid-too-small-segment-load-command
macho-invalid-too-small-segment-load-command.1 Clean up the specific error message for a malformed Mach-O files with bad segment 2016-05-05 17:43:35 +00:00
macho-invalid-zero-ncmds
macho-no-exports.dylib
macho-rpath-x86_64
macho-text-data-bss.macho-x86_64
macho-text-sections.macho-x86_64
macho-text.thumb
macho-toc64-archive-x86_64.a Add support for Darwin’s static library table of contents with 64-bit offsets to the archive members. 2016-06-17 22:16:06 +00:00
macho-universal64-archive.x86_64.i386 Forgot to svn add one of my test files for the change in r273207. 2016-06-20 22:27:49 +00:00
macho-universal64.x86_64.i386 Add support for Darwin’s 64-bit universal files with 64-bit offsets and sizes for the objects. 2016-06-20 22:16:18 +00:00
macho-universal-archive-bad1.x86_64.i386 Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-31 20:35:34 +00:00
macho-universal-archive-bad2.x86_64.i386 Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-31 20:35:34 +00:00
macho-universal-archive.x86_64.i386
macho-universal-bad1.x86_64.i386 Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-31 20:35:34 +00:00
macho-universal-bad2.x86_64.i386 Change llvm-objdump, llvm-nm and llvm-size when reporting an object file error 2016-05-31 20:35:34 +00:00
macho-universal.x86_64.i386
macho-valid-0-nsyms Fix the code that leads to the incorrect trigger of the report_fatal_error() 2016-01-22 22:49:55 +00:00
MacOSX.a
main-ret-zero-pe-i386.dll
main-ret-zero-pe-i386.exe
micro-mips.elf-mipsel
mri-crlf.mri
no-section-header-string-table.elf-x86-64
no-section-table.so
no-sections.elf-x86-64
no-start-symbol.elf-x86_64
oddlen
pr25877.lib
program-headers.elf-i386
program-headers.elf-x86-64
program-headers.mips
program-headers.mips64
rel-no-sec-table.elf-x86-64
relocatable-with-section-address.elf-x86-64
relocation-dynamic.elf-i386
relocation-relocatable.elf-i386
relocations.elf-x86-64
sectionGroup.elf.x86-64
shared-object-test.elf-i386
shared-object-test.elf-x86-64
shared.ll
shndx.elf
stackmap-test.macho-x86-64
SVR4.a
symtab-only.a
thin-path.a
thin.a
thumb-symbols.elf.arm
trivial-executable-test.macho-x86-64
trivial-label-test.elf-x86-64
trivial-object-test2.elf-x86-64
trivial-object-test2.macho-x86-64
trivial-object-test.coff-i386
trivial-object-test.coff-x86-64
trivial-object-test.elf-avr
trivial-object-test.elf-hexagon
trivial-object-test.elf-i386
trivial-object-test.elf-mips64el
trivial-object-test.elf-mipsel
trivial-object-test.elf-x86-64
trivial-object-test.macho-i386
trivial-object-test.macho-x86-64
trivial.ll
unwind-section.elf-x86-64
very_long_bytecode_file_name.bc
weak-global-symbol.macho-i386
weak.elf-x86-64
xpg4.a