llvm-6502/test/Object
Rafael Espindola f02687d9eb llvm-ar: Start adding support for mri scripts.
I was quiet surprised to find this feature being used. Fortunately the uses
I found look fairly simple. In fact, they are just a very verbose version
of the regular ar commands.

Start implementing it then by parsing the script and setting the command
variables as if we had a regular command line.

This patch adds just enough support to create an empty archive and do a bit
of error checking. In followup patches I will implement at least addmod
and addlib.

From the description in the manual, even the more general case should not
be too hard to implement if needed. The features that don't map 1:1 to
the simple command line are

* Reading from multiple archives.
* Creating multiple archives.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219521 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-10 18:33:51 +00:00
..
ARM Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
Inputs Add tests for r219479. 2014-10-10 06:59:05 +00:00
Mips Reduce verbiage of lit.local.cfg files 2014-06-09 22:42:55 +00:00
X86 Nuke MCAnalysis. 2014-09-02 22:32:20 +00:00
ar-create.test llvm/test/Object/ar-create.test: Relax a CHECK line to satisfy localized message catalogue. 2013-07-16 23:17:22 +00:00
ar-error.test llvm/test/Object/ar-error.test: Don't check the message "No such file or directory". 2014-05-24 08:47:11 +00:00
archive-delete.test Use a more unique name to avoid conflicting with directory.ll tests when running 2013-07-11 13:31:38 +00:00
archive-error-tmp.txt On error, close the temporary file descriptor. 2013-07-16 16:00:32 +00:00
archive-extract-dir.test Split openFileForWrite into windows and unix versions. 2013-07-19 15:02:03 +00:00
archive-format.test Only verify the length in archive test, we can't make assumptions on the spacing. 2013-07-13 15:21:39 +00:00
archive-long-index.test Changed the lvm-nm alias "-s" for -print-armap to "-M". 2014-07-08 23:47:31 +00:00
archive-move.test Add tests for the before and after modifiers. 2013-07-11 21:11:55 +00:00
archive-replace-pos.test Replace archive members in the old position. 2013-07-22 15:11:51 +00:00
archive-symtab.test Changed the lvm-nm alias "-s" for -print-armap to "-M". 2014-07-08 23:47:31 +00:00
archive-toc.test Update tests to use the new format of printing a TimeValue. It's a bit 2014-04-28 01:24:32 +00:00
archive-update.test The archive update test has a subtle race condition in it: if the test 2013-07-14 10:46:51 +00:00
check_binary_output.ll raw_ostream.cpp: Introduce <fcntl.h> to let O_BINARY provided. Or, llvm::outs() would be set to O_TEXT by default. 2013-07-17 02:21:10 +00:00
coff-archive-short.test Changed the lvm-nm alias "-s" for -print-armap to "-M". 2014-07-08 23:47:31 +00:00
coff-archive.test Changed the lvm-nm alias "-s" for -print-armap to "-M". 2014-07-08 23:47:31 +00:00
corrupt.test [Object] Split the ELF interface into 3 parts. 2013-08-08 22:27:13 +00:00
directory.ll Use std::error_code instead of llvm::error_code. 2014-06-11 19:05:50 +00:00
elf-reloc-no-sym.test
extract.ll Update tests to use the new format of printing a TimeValue. It's a bit 2014-04-28 01:24:32 +00:00
lit.local.cfg
mangle-ir.ll Mark intrinsic functions as llvm-specific. 2014-07-04 15:58:00 +00:00
mri1.test llvm-ar: Start adding support for mri scripts. 2014-10-10 18:33:51 +00:00
mri2.test llvm-ar: Start adding support for mri scripts. 2014-10-10 18:33:51 +00:00
mri3.test llvm-ar: Start adding support for mri scripts. 2014-10-10 18:33:51 +00:00
mri4.test llvm-ar: Start adding support for mri scripts. 2014-10-10 18:33:51 +00:00
mri5.test llvm-ar: Start adding support for mri scripts. 2014-10-10 18:33:51 +00:00
nm-archive.test Add an implementation for llvm-nm’s -print-file-name option (aka -o and -A). 2014-07-24 23:31:52 +00:00
nm-darwin-m.test Added the -m option as an alias for -format=darwin to llvm-nm and llvm-size 2014-06-20 00:04:16 +00:00
nm-error.test We do use pipefail these days. Update the test. 2014-01-29 04:08:05 +00:00
nm-shared-object.test Fix llvm-nm to print the full 64-bit address for symbols in 64-bit object files. 2014-05-09 23:57:49 +00:00
nm-trivial-object.test Correctly compute the size of common symbols in COFF. 2014-10-08 17:37:19 +00:00
nm-universal-binary.test pr20589: Fix duplicated arch flag. 2014-08-08 16:18:29 +00:00
nm-weak-global-macho.test Fix llvm-nm to mach OS X's nm on some tests. 2013-11-02 05:03:24 +00:00
obj2yaml-coff-long-file-symbol.test Object: Output .file symbols properly 2014-03-20 06:29:02 +00:00
obj2yaml-coff-long-section-name.test obj2yaml, COFF: Handle long section names 2014-10-10 00:17:57 +00:00
obj2yaml-coff-section-aux-symbol.test Add tests for r219479. 2014-10-10 06:59:05 +00:00
obj2yaml-coff-weak-external.test obj2yaml: Don't crash if the characteristics field is zero 2014-04-09 16:38:15 +00:00
obj2yaml.test [Mips] Support SHT_MIPS_ABIFLAGS section type flag in the llvm-readobj, 2014-07-13 15:28:54 +00:00
objdump-file-header.test
objdump-no-sectionheaders.test objdump: Add test for ELF file with no section table 2014-06-30 20:03:02 +00:00
objdump-private-headers.test
objdump-reloc-shared.test llvm-objdump: don't print relocations in non-relocatable files. 2014-08-17 19:09:37 +00:00
objdump-relocations.test [Object][ELF][Mips] Print symbol name for MIPS ELF relocations. 2014-01-23 15:05:45 +00:00
objdump-section-content.test
objdump-sectionheaders.test
objdump-symbol-table.test
readobj-elf-versioning.test Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
readobj-shared-object.test Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
readobj.test
relocation-executable.test
simple-archive.test Changed the lvm-nm alias "-s" for -print-armap to "-M". 2014-07-08 23:47:31 +00:00
size-trivial-macho.test Add the -arch flag support to llvm-size like what was done to llvm-nm 2014-07-01 17:19:10 +00:00
yaml2obj-coff-multi-doc.test [yaml2obj] Add new command line option -docnum. 2014-05-31 04:51:07 +00:00
yaml2obj-elf-bits-endian.test
yaml2obj-elf-file-headers-with-e_flags.yaml [llvm-readobj] Add support for Mips specific ELF header e_flags. 2014-05-01 11:07:19 +00:00
yaml2obj-elf-file-headers.yaml
yaml2obj-elf-multi-doc.test [yaml2obj] Add new command line option -docnum. 2014-05-31 04:51:07 +00:00
yaml2obj-elf-rel.yaml Use the new StringTableBuilder in yaml2elf 2014-04-30 19:38:09 +00:00
yaml2obj-elf-section-basic.yaml [yaml2obj][ELF] Add an optional Size field to the YAML section declaration. 2014-05-16 16:01:00 +00:00
yaml2obj-elf-section-invalid-size.yaml [yaml2obj][ELF] Add an optional Size field to the YAML section declaration. 2014-05-16 16:01:00 +00:00
yaml2obj-elf-symbol-basic.yaml Teach llvm-readobj to print human friendly description of reserved sections. 2014-03-24 05:00:34 +00:00
yaml2obj-elf-symbol-LocalGlobalWeak.yaml
yaml2obj-elf-symbol-visibility.yaml [yaml2obj][obj2yaml] Support ELF symbol's visibility flags (default/hidden/protected). 2014-06-06 07:41:57 +00:00
yaml2obj-readobj.test [yaml2obj] Add "-o" command line option to specify an output file name. 2014-05-15 16:14:02 +00:00