[llvm] r347958 - [llvm-objcopy] Move elf-specific tests into subfolder

Alexander Shaposhnikov via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 29 21:43:40 PST 2018


Author: alexshap
Date: Thu Nov 29 21:43:39 2018
New Revision: 347958

URL: http://llvm.org/viewvc/llvm-project?rev=347958&view=rev
Log:
[llvm-objcopy] Move elf-specific tests into subfolder

In this diff the elf-specific tests are moved into the subfolder llvm-objcopy/ELF
(the change was discussed in the comments on https://reviews.llvm.org/D54674).
A separate code reivew wasn't sent for this change 
since Phabricator is failing to create such a large diff.

Test plan: 
make check-all
make check-llvm-tools
make check-llvm-tools-llvm-objcopy

Added:
    llvm/trunk/test/tools/llvm-objcopy/ELF/
    llvm/trunk/test/tools/llvm-objcopy/ELF/Inputs/
      - copied from r347957, llvm/trunk/test/tools/llvm-objcopy/Inputs/
    llvm/trunk/test/tools/llvm-objcopy/ELF/abs-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/abs-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/add-gnu-debuglink.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/add-gnu-debuglink.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/add-section-remove.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/add-section-remove.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/add-section.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/add-section.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/adjacent-segments.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/adjacent-segments.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/armexidx-link.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/armexidx-link.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/auto-remove-shndx.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/auto-remove-shndx.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/basic-archive-copy.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/basic-archive-copy.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/basic-binary-copy.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/basic-binary-copy.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/basic-copy.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/basic-copy.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/basic-keep.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/basic-keep.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/basic-only-keep-debug.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/basic-only-keep-debug.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/basic-only-keep.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/basic-only-keep.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/basic-relocations.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/basic-relocations.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-first-seg-offset-zero.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-first-seg-offset-zero.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-input-and-output.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-input-and-output.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-input-arch.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-input-arch.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-input-error.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-input-error.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-input.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-input.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-no-paddr.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-no-paddr.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-out-error.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-out-error.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-paddr.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-paddr.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-remove-all-but-one.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-remove-all-but-one.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-remove-end.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-remove-end.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-remove-middle.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-remove-middle.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/binary-segment-layout.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/binary-segment-layout.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/cannot-delete-dest.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/check-addr-offset-align-binary.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align-binary.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/check-addr-offset-align.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/common-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/common-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/compress-and-decompress-debug-sections-error.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/compress-and-decompress-debug-sections-error.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-default-gnu.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default-gnu.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-default.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-invalid-format.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib-gnu.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/compress-debug-sections-zlib.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/compress-debug-sections.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/deterministic-archive.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/deterministic-archive.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/discard-all.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/discard-all.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/drawf-fission.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/drawf-fission.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/dump-section.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/dump-section.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/dynamic-relocations.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/dynamic-relocations.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/dynamic.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/dynamic.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/dynstr.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/dynstr.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/dynsym-error-remove-strtab.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/dynsym.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/dynsym.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/elf32be.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/elf32be.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/elf32le.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/elf32le.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/elf64be.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/elf64be.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/empty-section.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/empty-section.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/explicit-keep-remove.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/explicit-keep-remove.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/explicit-only-keep-remove.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/explicit-only-keep-remove.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/fail-no-output-directory.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/fail-no-output-directory.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/globalize.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/globalize.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/group-big-endian.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/group-big-endian.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/group-unchanged.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/group-unchanged.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/group.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/group.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/help-message.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/help-message.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/hexagon-unsupported-on-x86.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/identical-segments.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/identical-segments.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/input-output-target.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/input-output-target.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/keep-file-symbols.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/keep-file-symbols.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/keep-global-symbols-mix-globalize.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols-mix-globalize.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/keep-global-symbols.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/keep-many.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/keep-many.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/keep-only-keep.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/keep-only-keep.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/keep-symbol-remove-section.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/keep-symbol-remove-section.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/keep-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/keep-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/localize-hidden.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/localize-hidden.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/localize.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/localize.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/many-sections.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/many-sections.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/marker-segment.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/marker-segment.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/no-symbol-relocation.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/no-symbol-relocation.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/null-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/null-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/objcopy-version.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/objcopy-version.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/only-keep-many.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/only-keep-many.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/only-keep-remove-strtab.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/only-keep-remove-strtab.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/only-keep-strip-non-alloc.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/only-keep-strip-non-alloc.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/overlap-chain.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/overlap-chain.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/parent-loop-check.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/parent-loop-check.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/prefix-symbols.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/prefix-symbols.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/program-headers.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/program-headers.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/pt-phdr.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/pt-phdr.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/redefine-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/redefine-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/reloc-error-remove-symtab.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/reloc-error-remove-symtab.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/reloc-no-symtab.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/reloc-no-symtab.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/relocatable-phdr.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/relocatable-phdr.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/remove-multiple-sections.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/remove-multiple-sections.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/remove-section-with-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/remove-section-with-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/remove-section.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/remove-section.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/remove-shndx.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/remove-shndx.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/remove-shstrtab-error.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/remove-shstrtab-error.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/remove-symtab.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/remove-symtab.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/rename-section-flag-osproc-mask.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-osproc-mask.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/rename-section-flag-preserved.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-preserved.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/rename-section-flag.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/rename-section-flag.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/rename-section-multiple.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/rename-section-multiple.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/rename-section.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/rename-section.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/section-index-unsupported.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/sectionless-segment.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/sectionless-segment.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/segment-shift-section-remove.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/segment-shift-section-remove.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/segment-shift.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/segment-shift.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/segment-test-remove-section.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/segment-test-remove-section.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strict-no-add.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strict-no-add.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-all-and-keep-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-all-and-keep-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-all-and-remove.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-all-and-remove.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-all.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-all.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-debug-and-remove.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-debug-and-remove.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-debug.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-debug.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-dwo-groups.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-dwo-groups.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-dwo-inplace.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-dwo-inplace.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-group-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-group-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-multiple-files.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-multiple-files.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-non-alloc.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-non-alloc.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-preserve-time.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-reloc-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-reloc-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-sections-keep.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-sections-keep.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-sections-only-keep.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-sections-only-keep.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-sections.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-sections.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-symbol.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-unneeded.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-unneeded.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/strip-version.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/strip-version.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/symbol-copy.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/symbol-copy.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/symtab-error-on-remove-strtab.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/symtab-error-on-remove-strtab.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/symtab-link.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/symtab-link.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/triple-overlap.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/triple-overlap.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/two-seg-remove-end.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-end.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/two-seg-remove-first.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-first.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/two-seg-remove-third-sec.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-third-sec.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/weaken-all.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/weaken-all.test
    llvm/trunk/test/tools/llvm-objcopy/ELF/weaken.test
      - copied unchanged from r347957, llvm/trunk/test/tools/llvm-objcopy/weaken.test
Removed:
    llvm/trunk/test/tools/llvm-objcopy/Inputs/
    llvm/trunk/test/tools/llvm-objcopy/abs-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/add-gnu-debuglink.test
    llvm/trunk/test/tools/llvm-objcopy/add-section-remove.test
    llvm/trunk/test/tools/llvm-objcopy/add-section.test
    llvm/trunk/test/tools/llvm-objcopy/adjacent-segments.test
    llvm/trunk/test/tools/llvm-objcopy/armexidx-link.test
    llvm/trunk/test/tools/llvm-objcopy/auto-remove-shndx.test
    llvm/trunk/test/tools/llvm-objcopy/basic-archive-copy.test
    llvm/trunk/test/tools/llvm-objcopy/basic-binary-copy.test
    llvm/trunk/test/tools/llvm-objcopy/basic-copy.test
    llvm/trunk/test/tools/llvm-objcopy/basic-keep.test
    llvm/trunk/test/tools/llvm-objcopy/basic-only-keep-debug.test
    llvm/trunk/test/tools/llvm-objcopy/basic-only-keep.test
    llvm/trunk/test/tools/llvm-objcopy/basic-relocations.test
    llvm/trunk/test/tools/llvm-objcopy/binary-first-seg-offset-zero.test
    llvm/trunk/test/tools/llvm-objcopy/binary-input-and-output.test
    llvm/trunk/test/tools/llvm-objcopy/binary-input-arch.test
    llvm/trunk/test/tools/llvm-objcopy/binary-input-error.test
    llvm/trunk/test/tools/llvm-objcopy/binary-input.test
    llvm/trunk/test/tools/llvm-objcopy/binary-no-paddr.test
    llvm/trunk/test/tools/llvm-objcopy/binary-out-error.test
    llvm/trunk/test/tools/llvm-objcopy/binary-paddr.test
    llvm/trunk/test/tools/llvm-objcopy/binary-remove-all-but-one.test
    llvm/trunk/test/tools/llvm-objcopy/binary-remove-end.test
    llvm/trunk/test/tools/llvm-objcopy/binary-remove-middle.test
    llvm/trunk/test/tools/llvm-objcopy/binary-segment-layout.test
    llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test
    llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align-binary.test
    llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align.test
    llvm/trunk/test/tools/llvm-objcopy/common-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/compress-and-decompress-debug-sections-error.test
    llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default-gnu.test
    llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default.test
    llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test
    llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test
    llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib.test
    llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections.test
    llvm/trunk/test/tools/llvm-objcopy/deterministic-archive.test
    llvm/trunk/test/tools/llvm-objcopy/discard-all.test
    llvm/trunk/test/tools/llvm-objcopy/drawf-fission.test
    llvm/trunk/test/tools/llvm-objcopy/dump-section.test
    llvm/trunk/test/tools/llvm-objcopy/dynamic-relocations.test
    llvm/trunk/test/tools/llvm-objcopy/dynamic.test
    llvm/trunk/test/tools/llvm-objcopy/dynstr.test
    llvm/trunk/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test
    llvm/trunk/test/tools/llvm-objcopy/dynsym.test
    llvm/trunk/test/tools/llvm-objcopy/elf32be.test
    llvm/trunk/test/tools/llvm-objcopy/elf32le.test
    llvm/trunk/test/tools/llvm-objcopy/elf64be.test
    llvm/trunk/test/tools/llvm-objcopy/empty-section.test
    llvm/trunk/test/tools/llvm-objcopy/explicit-keep-remove.test
    llvm/trunk/test/tools/llvm-objcopy/explicit-only-keep-remove.test
    llvm/trunk/test/tools/llvm-objcopy/fail-no-output-directory.test
    llvm/trunk/test/tools/llvm-objcopy/globalize.test
    llvm/trunk/test/tools/llvm-objcopy/group-big-endian.test
    llvm/trunk/test/tools/llvm-objcopy/group-unchanged.test
    llvm/trunk/test/tools/llvm-objcopy/group.test
    llvm/trunk/test/tools/llvm-objcopy/help-message.test
    llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test
    llvm/trunk/test/tools/llvm-objcopy/identical-segments.test
    llvm/trunk/test/tools/llvm-objcopy/input-output-target.test
    llvm/trunk/test/tools/llvm-objcopy/keep-file-symbols.test
    llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols-mix-globalize.test
    llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols.test
    llvm/trunk/test/tools/llvm-objcopy/keep-many.test
    llvm/trunk/test/tools/llvm-objcopy/keep-only-keep.test
    llvm/trunk/test/tools/llvm-objcopy/keep-symbol-remove-section.test
    llvm/trunk/test/tools/llvm-objcopy/keep-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/localize-hidden.test
    llvm/trunk/test/tools/llvm-objcopy/localize.test
    llvm/trunk/test/tools/llvm-objcopy/many-sections.test
    llvm/trunk/test/tools/llvm-objcopy/marker-segment.test
    llvm/trunk/test/tools/llvm-objcopy/no-symbol-relocation.test
    llvm/trunk/test/tools/llvm-objcopy/null-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/objcopy-version.test
    llvm/trunk/test/tools/llvm-objcopy/only-keep-many.test
    llvm/trunk/test/tools/llvm-objcopy/only-keep-remove-strtab.test
    llvm/trunk/test/tools/llvm-objcopy/only-keep-strip-non-alloc.test
    llvm/trunk/test/tools/llvm-objcopy/overlap-chain.test
    llvm/trunk/test/tools/llvm-objcopy/parent-loop-check.test
    llvm/trunk/test/tools/llvm-objcopy/prefix-symbols.test
    llvm/trunk/test/tools/llvm-objcopy/program-headers.test
    llvm/trunk/test/tools/llvm-objcopy/pt-phdr.test
    llvm/trunk/test/tools/llvm-objcopy/redefine-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/reloc-error-remove-symtab.test
    llvm/trunk/test/tools/llvm-objcopy/reloc-no-symtab.test
    llvm/trunk/test/tools/llvm-objcopy/relocatable-phdr.test
    llvm/trunk/test/tools/llvm-objcopy/remove-multiple-sections.test
    llvm/trunk/test/tools/llvm-objcopy/remove-section-with-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/remove-section.test
    llvm/trunk/test/tools/llvm-objcopy/remove-shndx.test
    llvm/trunk/test/tools/llvm-objcopy/remove-shstrtab-error.test
    llvm/trunk/test/tools/llvm-objcopy/remove-symtab.test
    llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-osproc-mask.test
    llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-preserved.test
    llvm/trunk/test/tools/llvm-objcopy/rename-section-flag.test
    llvm/trunk/test/tools/llvm-objcopy/rename-section-multiple.test
    llvm/trunk/test/tools/llvm-objcopy/rename-section.test
    llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test
    llvm/trunk/test/tools/llvm-objcopy/sectionless-segment.test
    llvm/trunk/test/tools/llvm-objcopy/segment-shift-section-remove.test
    llvm/trunk/test/tools/llvm-objcopy/segment-shift.test
    llvm/trunk/test/tools/llvm-objcopy/segment-test-remove-section.test
    llvm/trunk/test/tools/llvm-objcopy/strict-no-add.test
    llvm/trunk/test/tools/llvm-objcopy/strip-all-and-keep-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/strip-all-and-remove.test
    llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test
    llvm/trunk/test/tools/llvm-objcopy/strip-all.test
    llvm/trunk/test/tools/llvm-objcopy/strip-debug-and-remove.test
    llvm/trunk/test/tools/llvm-objcopy/strip-debug.test
    llvm/trunk/test/tools/llvm-objcopy/strip-dwo-groups.test
    llvm/trunk/test/tools/llvm-objcopy/strip-dwo-inplace.test
    llvm/trunk/test/tools/llvm-objcopy/strip-group-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/strip-multiple-files.test
    llvm/trunk/test/tools/llvm-objcopy/strip-non-alloc.test
    llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test
    llvm/trunk/test/tools/llvm-objcopy/strip-reloc-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/strip-sections-keep.test
    llvm/trunk/test/tools/llvm-objcopy/strip-sections-only-keep.test
    llvm/trunk/test/tools/llvm-objcopy/strip-sections.test
    llvm/trunk/test/tools/llvm-objcopy/strip-symbol.test
    llvm/trunk/test/tools/llvm-objcopy/strip-unneeded.test
    llvm/trunk/test/tools/llvm-objcopy/strip-version.test
    llvm/trunk/test/tools/llvm-objcopy/symbol-copy.test
    llvm/trunk/test/tools/llvm-objcopy/symtab-error-on-remove-strtab.test
    llvm/trunk/test/tools/llvm-objcopy/symtab-link.test
    llvm/trunk/test/tools/llvm-objcopy/triple-overlap.test
    llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-end.test
    llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-first.test
    llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-third-sec.test
    llvm/trunk/test/tools/llvm-objcopy/weaken-all.test
    llvm/trunk/test/tools/llvm-objcopy/weaken.test

Removed: llvm/trunk/test/tools/llvm-objcopy/abs-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/abs-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/abs-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/abs-symbol.test (removed)
@@ -1,36 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Symbols:
-  Global:
-    - Name:     test
-      Index:    SHN_ABS
-      Value:    0x1234
-
-#CHECK:     Symbols [
-#CHECK-NEXT:   Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local (0x0)
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined (0x0)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: test
-#CHECK-NEXT:    Value: 0x1234
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Absolute (0xFFF1)
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/add-gnu-debuglink.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/add-gnu-debuglink.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/add-gnu-debuglink.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/add-gnu-debuglink.test (removed)
@@ -1,28 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: printf 0000 > %t.blob
-# RUN: llvm-objcopy -add-gnu-debuglink=%t.blob %t %t2
-# RUN: llvm-readobj -sections -section-data %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-
-# CHECK:       Name: .gnu_debuglink
-# CHECK-NEXT:  Type: SHT_PROGBITS (0x1)
-# CHECK-NEXT:  Flags [ (0x0)
-# CHECK-NEXT:  ]
-# CHECK-NEXT:  Address: 0x0
-# CHECK-NEXT:  Offset:
-# CHECK-NEXT:  Size: 36
-# CHECK-NEXT:  Link: 0
-# CHECK-NEXT:  Info: 0
-# CHECK-NEXT:  AddressAlignment: 4
-# CHECK-NEXT:  EntrySize: 0
-# CHECK-NEXT:  SectionData (
-# CHECK-NEXT:      0000: 6164642D 676E752D 64656275 676C696E  |add-gnu-debuglin|
-# CHECK-NEXT:      0010: 6B2E7465 73742E74 6D702E62 6C6F6200  |k.test.tmp.blob.|
-# CHECK-NEXT:      0020: 72C49B0C                             |r...|
-# CHECK-NEXT:  )

Removed: llvm/trunk/test/tools/llvm-objcopy/add-section-remove.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/add-section-remove.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/add-section-remove.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/add-section-remove.test (removed)
@@ -1,36 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: echo 0000 > %t.sec
-# RUN: llvm-objcopy -R .test2 -add-section=.test2=%t.sec %t %t2
-# RUN: llvm-readobj -file-headers -sections -section-data %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test1
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "c3c3c3c3"
-  - Name:            .test2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "DEADBEEF"
-  - Name:            .test3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "32323232"
-
-# CHECK: SectionHeaderCount: 7
-
-# CHECK: Name: .test1
-# CHECK: Name: .test3
-# CHECK: Name: .symtab
-# CHECK: Name: .strtab
-# CHECK: Name: .shstrtab
-# CHECK: Name: .test2
-# CHECK: SectionData (
-# CHECK-NEXT:   0000: 30303030
-# CHECK-NEXT: )

Removed: llvm/trunk/test/tools/llvm-objcopy/add-section.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/add-section.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/add-section.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/add-section.test (removed)
@@ -1,37 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -O binary -j .test2 %t %t.sec
-# RUN: llvm-objcopy -R .test2 %t %t2
-# RUN: llvm-objcopy -add-section=.test2=%t.sec %t2 %t3
-# RUN: llvm-readobj -file-headers -sections -section-data %t3 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test1
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "c3c3c3c3"
-  - Name:            .test2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "DEADBEEF"
-  - Name:            .test3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "32323232"
-
-# CHECK: SectionHeaderCount: 7
-
-# CHECK: Name: .test1
-# CHECK: Name: .test3
-# CHECK: Name: .symtab
-# CHECK: Name: .strtab
-# CHECK: Name: .shstrtab
-# CHECK: Name: .test2
-# CHECK: SectionData (
-# CHECK-NEXT:   0000: DEADBEEF
-# CHECK-NEXT: )

Removed: llvm/trunk/test/tools/llvm-objcopy/adjacent-segments.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/adjacent-segments.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/adjacent-segments.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/adjacent-segments.test (removed)
@@ -1,62 +0,0 @@
-# This test tests that if two non-overlapping segments are right next to each
-# other no problems arise.
-
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj --program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            24
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x10
-    Size:            16
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text2
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 24
-#CHECK-NEXT:    MemSize: 24
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x1020
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 16
-#CHECK-NEXT:    MemSize: 16
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 16
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/armexidx-link.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/armexidx-link.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/armexidx-link.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/armexidx-link.test (removed)
@@ -1,48 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -remove-section=.text.bar %t %t2
-# RUN: llvm-readobj -sections %t2 | FileCheck %s
-
-# CHECK:          Index: 2
-# CHECK-NEXT:     Name: .ARM.exidx.text.foo (1)
-# CHECK-NEXT:     Type: SHT_ARM_EXIDX (0x70000001)
-# CHECK:          Address: 0x0
-# CHECK-NEXT:     Offset: 0x34
-# CHECK-NEXT:     Size: 0
-# CHECK-NEXT:     Link: 1
-# CHECK-NEXT:     Info: 0
-
---- !ELF
-FileHeader:      
-  Class:           ELFCLASS32
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_ARM
-  Flags:           [ EF_ARM_EABI_VER5 ]
-Sections:        
-  - Name:            .text.bar
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .text.foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-  - Name:            .ARM.exidx.text.foo
-    Type:            SHT_ARM_EXIDX
-    Flags:           [ SHF_ALLOC, SHF_LINK_ORDER ]
-    Link:            .text.foo
-    AddressAlign:    0x0000000000000004
-    Content:         ''
-Symbols:         
-  Local:           
-    - Name:            .text.bar
-      Type:            STT_SECTION
-      Section:         .text.bar
-    - Name:            .text.foo
-      Type:            STT_SECTION
-      Section:         .text.foo
-    - Name:            .ARM.exidx.text.foo
-      Type:            STT_SECTION
-      Section:         .ARM.exidx.text.foo

Removed: llvm/trunk/test/tools/llvm-objcopy/auto-remove-shndx.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/auto-remove-shndx.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/auto-remove-shndx.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/auto-remove-shndx.test (removed)
@@ -1,5 +0,0 @@
-# RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t
-# RUN: llvm-objcopy -R .text -R s0 -R s1 -R s2 -R s3 -R s4 -R s5 -R s6 %t %t2
-# RUN: llvm-readobj -sections %t2 | FileCheck --check-prefix=SECS %s
-
-# SECS-NOT: Name: .symtab_shndx

Removed: llvm/trunk/test/tools/llvm-objcopy/basic-archive-copy.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/basic-archive-copy.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/basic-archive-copy.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/basic-archive-copy.test (removed)
@@ -1,99 +0,0 @@
-# RUN: yaml2obj %s > %t
-
-# RUN: rm -f %t.a
-# RUN: llvm-ar crs %t.a %t
-# RUN: cp %t.a %t.copy.a
-# RUN: llvm-objcopy %t.a %t2.a
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-ar p %t2.a > %t3
-# RUN: cmp %t2 %t3
-
-# RUN: llvm-readobj -sections %t2 | FileCheck %s
-# RUN: llvm-nm -print-armap %t.a | FileCheck --check-prefix=INDEX-TABLE %s
-# RUN: llvm-nm -print-armap %t2.a | FileCheck --check-prefix=INDEX-TABLE %s
-# Verify that llvm-objcopy has not modifed the input.
-# RUN: cmp %t.copy.a %t.a
-
-# INDEX-TABLE: Archive map
-# INDEX-TABLE-NEXT: foo in
-
-# RUN: rm -f %t.no.index.a
-# RUN: llvm-ar crS %t.no.index.a %t
-# RUN: llvm-objcopy %t.no.index.a %t2.no.index.a
-# RUN: llvm-ar p %t2.no.index.a > %t4
-
-# RUN: llvm-nm -print-armap %t.no.index.a | FileCheck --check-prefix=NO-INDEX-TABLE %s
-# RUN: llvm-nm -print-armap %t2.no.index.a | FileCheck --check-prefix=NO-INDEX-TABLE %s
-# RUN: cmp %t2 %t4
-
-# NO-INDEX-TABLE-NOT: Archive map
-# NO-INDEX-TABLE-NOT: foo in
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-Symbols:
-   Global:
-     - Name:     foo
-       Type:     STT_FUNC
-       Section:  .text
-       Value:    0x1004
-
-# CHECK: Type: SHT_NULL
-
-# CHECK:      Name: .bss
-# CHECK-NEXT: Type: SHT_NOBITS
-# CHECK-NEXT: Flags [
-# CHECK-NEXT:   SHF_ALLOC
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset:
-# CHECK-NEXT: Size: 64
-
-# CHECK:      Name: .text
-# CHECK-NEXT: Type: SHT_PROGBITS
-# CHECK-NEXT: Flags [
-# CHECK-NEXT:   SHF_ALLOC
-# CHECK-NEXT:   SHF_EXECINSTR
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset:
-# CHECK-NEXT: Size: 4
-
-# CHECK:      Name: .symtab
-# CHECK-NEXT: Type: SHT_SYMTAB
-# CHECK-NEXT: Flags [ (0x0)
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset:
-# CHECK-NEXT: Size: 48
-
-# CHECK:      Name: .strtab
-# CHECK-NEXT: Type: SHT_STRTAB
-# CHECK-NEXT: Flags [ (0x0)
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset:
-# CHECK-NEXT: Size: 6
-
-# CHECK:      Name: .shstrtab
-# CHECK-NEXT: Type: SHT_STRTAB
-# CHECK-NEXT: Flags [
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset:
-# CHECK-NEXT: Size: 38

Removed: llvm/trunk/test/tools/llvm-objcopy/basic-binary-copy.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/basic-binary-copy.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/basic-binary-copy.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/basic-binary-copy.test (removed)
@@ -1,25 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -O binary %t %t2
-# RUN: od -t x2 -v %t2 | FileCheck %s
-# RUN: wc -c < %t2 | FileCheck %s --check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000001000
-    Content:         "c3c3c3c3"
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text
-
-# CHECK: 0000000 c3c3 c3c3
-# SIZE:  4

Removed: llvm/trunk/test/tools/llvm-objcopy/basic-copy.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/basic-copy.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/basic-copy.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/basic-copy.test (removed)
@@ -1,47 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-
-# CHECK: Type: SHT_NULL
-
-# CHECK:      Name: .bss
-# CHECK-NEXT: Type: SHT_NOBITS
-# CHECK-NEXT: Flags [
-# CHECK-NEXT:   SHF_ALLOC
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset: [[OFFSET:0x[0-9A-F]+]]
-# CHECK-NEXT: Size: 64
-
-# CHECK:      Name: .text
-# CHECK-NEXT: Type: SHT_PROGBITS
-# CHECK-NEXT: Flags [
-# CHECK-NEXT:   SHF_ALLOC
-# CHECK-NEXT:   SHF_EXECINSTR
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset: [[OFFSET]]
-# CHECK-NEXT: Size: 4
-
-# CHECK:      Name: .shstrtab
-# CHECK-NEXT: Type: SHT_STRTAB
-# CHECK-NEXT: Flags [
-# CHECK-NEXT: ]

Removed: llvm/trunk/test/tools/llvm-objcopy/basic-keep.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/basic-keep.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/basic-keep.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/basic-keep.test (removed)
@@ -1,21 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -strip-non-alloc -keep-section=.test %t %t2
-# RUN: llvm-strip --strip-all -keep-section=.test %t -o %t3
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-# RUN: cmp %t2 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 3
-
-# CHECK:     Name: .test
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/basic-only-keep-debug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/basic-only-keep-debug.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/basic-only-keep-debug.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/basic-only-keep-debug.test (removed)
@@ -1,20 +0,0 @@
-# NOTE: This test is only intended to be valid as long as --only-keep-debug is
-#       implemented as a NOP. This test should fail when that changes and you
-#       will need to update this test.
-
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-objcopy --only-keep-debug %t %t3
-# RUN: cmp %t2 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Content:         "DEADBEEF"

Removed: llvm/trunk/test/tools/llvm-objcopy/basic-only-keep.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/basic-only-keep.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/basic-only-keep.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/basic-only-keep.test (removed)
@@ -1,23 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -only-keep=.test %t %t2
-# RUN: llvm-objcopy -j .test %t %t3
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-# RUN: diff %t2 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 5
-
-# CHECK:     Name: .test
-# CHECK:     Name: .symtab
-# CHECK:     Name: .strtab
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/basic-relocations.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/basic-relocations.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/basic-relocations.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/basic-relocations.test (removed)
@@ -1,91 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -relocations %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-  - Name:            .rel.text
-    Type:            SHT_REL
-    Link:            .symtab
-    Info:            .text
-    Relocations:
-      - Offset: 0x1000
-        Symbol: foo
-        Type:   R_X86_64_PC32
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x2000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-  - Name:            .rel.data
-    Type:            SHT_REL
-    Link:            .symtab
-    Info:            .data
-    Relocations:
-      - Offset: 0x2000
-        Symbol: bar
-        Type:   R_X86_64_PC32
-  - Name:            .rela.data
-    Type:            SHT_RELA
-    Link:            .symtab
-    Info:            .data
-    Relocations:
-      - Offset: 0x2000
-        Symbol: barA
-        Type:   R_X86_64_PC32
-        Addend: 0x17
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Link:            .symtab
-    Info:            .text
-    Relocations:
-      - Offset: 0x1000
-        Symbol: fooA
-        Type:   R_X86_64_PC32
-        Addend: 0x13
-Symbols:
-  Global:
-    - Name:     _start
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     4
-    - Name:     foo
-      Type:     STT_FUNC
-      Size:     4
-    - Name:     fooA
-      Type:     STT_FUNC
-      Size:     4
-    - Name:     bar
-      Type:     STT_OBJECT
-      Size:     4
-    - Name:     barA
-      Type:     STT_OBJECT
-      Size:     4
-
-# CHECK:     Relocations [
-# CHECK-NEXT:  Section (2) .rel.text {
-# CHECK-NEXT:    0x1000 R_X86_64_PC32 foo 0x0
-# CHECK-NEXT:  }
-# CHECK-NEXT:  Section (4) .rel.data {
-# CHECK-NEXT:    0x2000 R_X86_64_PC32 bar 0x0
-# CHECK-NEXT:  }
-# CHECK-NEXT:  Section (5) .rela.data {
-# CHECK-NEXT:    0x2000 R_X86_64_PC32 barA 0x17
-# CHECK-NEXT:  }
-# CHECK-NEXT:  Section (6) .rela.text {
-# CHECK-NEXT:    0x1000 R_X86_64_PC32 fooA 0x13
-# CHECK-NEXT:  }
-# CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-first-seg-offset-zero.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-first-seg-offset-zero.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-first-seg-offset-zero.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-first-seg-offset-zero.test (removed)
@@ -1,34 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .note -O binary %t %t2
-# RUN: od -Ax -t x1 %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .note
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Content:         "32323232"
-    Size:            32
-  - Name:            .rodata
-    Flags:           [ SHF_ALLOC ]
-    Type:            SHT_PROGBITS
-    Address:         0x1020
-    Size:            4064
-    Content:         "DEADBEEF"
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .note
-      - Section: .rodata
-
-# CHECK: 000000 de ad be ef

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-input-and-output.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-input-and-output.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-input-and-output.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-input-and-output.test (removed)
@@ -1,15 +0,0 @@
-# RUN: echo abcd > %t.txt
-
-# Preserve input to verify it is not modified
-# RUN: cp %t.txt %t-copy.txt
-
-# -I binary -O binary preserves payload through in-memory representation
-# RUN: llvm-objcopy -I binary -B i386:x86-64 -O binary %t.txt %t.2.txt
-# RUN: cmp %t.txt %t.2.txt
-# RUN: cmp %t.txt %t-copy.txt
-
-# -I binary -O binary preserves payload through an intermediate object file
-# RUN: llvm-objcopy -I binary -B i386:x86-64 %t.txt %t.o
-# RUN: llvm-objcopy -O binary %t.o %t.3.txt
-# RUN: cmp %t.txt %t.3.txt
-# RUN: cmp %t.txt %t-copy.txt

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-input-arch.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-input-arch.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-input-arch.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-input-arch.test (removed)
@@ -1,75 +0,0 @@
-# RUN: echo abcd > %t.txt
-
-# RUN: llvm-objcopy -I binary -B aarch64 %t.txt %t.aarch64.o
-# RUN: llvm-readobj -file-headers %t.aarch64.o | FileCheck %s --check-prefixes=CHECK,AARCH64,64
-
-# RUN: llvm-objcopy -I binary -B arm %t.txt %t.arm.o
-# RUN: llvm-readobj -file-headers %t.arm.o | FileCheck %s --check-prefixes=CHECK,ARM,32
-
-# RUN: llvm-objcopy -I binary -B i386 %t.txt %t.i386.o
-# RUN: llvm-readobj -file-headers %t.i386.o | FileCheck %s --check-prefixes=CHECK,I386,32
-
-# RUN: llvm-objcopy -I binary -B i386:x86-64 %t.txt %t.i386_x86-64.o
-# RUN: llvm-readobj -file-headers %t.i386_x86-64.o | FileCheck %s --check-prefixes=CHECK,X86-64,64
-
-# RUN: llvm-objcopy -I binary -B powerpc:common64 %t.txt %t.powerpc_common64.o
-# RUN: llvm-readobj -file-headers %t.powerpc_common64.o | FileCheck %s --check-prefixes=CHECK,PPC,64
-
-# RUN: llvm-objcopy -I binary -B sparc %t.txt %t.sparc.o
-# RUN: llvm-readobj -file-headers %t.sparc.o | FileCheck %s --check-prefixes=CHECK,SPARC,32
-
-# RUN: llvm-objcopy -I binary -B x86-64 %t.txt %t.x86-64.o
-# RUN: llvm-readobj -file-headers %t.x86-64.o | FileCheck %s --check-prefixes=CHECK,X86-64,64
-
-# CHECK: Format:
-# AARCH64-SAME: ELF64-aarch64-little
-# ARM-SAME:     ELF32-arm-little
-# I386-SAME:    ELF32-i386
-# PPC-SAME:     ELF64-ppc64
-# SPARC-SAME:   ELF32-sparc
-# X86-64-SAME:  ELF64-x86-64
-
-# AARCH64-NEXT: Arch: aarch64
-# ARM-NEXT:     Arch: arm
-# I386-NEXT:    Arch: i386
-# PPC-NEXT:     Arch: powerpc64le
-# SPARC-NEXT:   Arch: sparcel
-# X86-64-NEXT:  Arch: x86_64
-
-# 32-NEXT:      AddressSize: 32bit
-# 64-NEXT:      AddressSize: 64bit
-
-# CHECK:        ElfHeader {
-# CHECK-NEXT:     Ident {
-# CHECK-NEXT:       Magic: (7F 45 4C 46)
-# 32-NEXT:          Class: 32-bit (0x1)
-# 64-NEXT:          Class: 64-bit (0x2)
-# CHECK-NEXT:       DataEncoding: LittleEndian (0x1)
-# CHECK-NEXT:       FileVersion: 1
-# CHECK-NEXT:       OS/ABI: SystemV (0x0)
-# CHECK-NEXT:       ABIVersion: 0
-# CHECK-NEXT:       Unused: (00 00 00 00 00 00 00)
-# CHECK-NEXT:     }
-# CHECK-NEXT:     Type: Relocatable (0x1)
-# AARCH64-NEXT:   Machine: EM_AARCH64 (0xB7)
-# ARM-NEXT:       Machine: EM_ARM (0x28)
-# I386-NEXT:      Machine: EM_386 (0x3)
-# PPC-NEXT:       Machine: EM_PPC64 (0x15)
-# SPARC-NEXT:     Machine: EM_SPARC (0x2)
-# X86-64-NEXT:    Machine: EM_X86_64 (0x3E)
-# CHECK-NEXT:     Version: 1
-# CHECK-NEXT:     Entry: 0x0
-# CHECK-NEXT:     ProgramHeaderOffset:
-# CHECK-NEXT:     SectionHeaderOffset:
-# CHECK-NEXT:     Flags [ (0x0)
-# CHECK-NEXT:     ]
-# 32-NEXT:        HeaderSize: 52
-# 64-NEXT:        HeaderSize: 64
-# 32-NEXT:        ProgramHeaderEntrySize: 0
-# 64-NEXT:        ProgramHeaderEntrySize: 0
-# CHECK-NEXT:     ProgramHeaderCount: 0
-# 32-NEXT:        SectionHeaderEntrySize: 40
-# 64-NEXT:        SectionHeaderEntrySize: 64
-# CHECK-NEXT:     SectionHeaderCount: 4
-# CHECK-NEXT:     StringTableSectionIndex:
-# CHECK-NEXT:   }

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-input-error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-input-error.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-input-error.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-input-error.test (removed)
@@ -1,10 +0,0 @@
-# RUN: echo abcd > %t.txt
-
-# RUN: not llvm-objcopy -I binary %t.txt %t.o 2>&1 \
-# RUN:   | FileCheck %s --check-prefix=MISSING-BINARY-ARCH
-
-# RUN: not llvm-objcopy -I binary -B xyz %t.txt %t.o 2>&1 \
-# RUN:   | FileCheck %s --check-prefix=BAD-BINARY-ARCH
-
-# MISSING-BINARY-ARCH: Specified binary input without specifiying an architecture.
-# BAD-BINARY-ARCH: Invalid architecture: 'xyz'.

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-input.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-input.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-input.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-input.test (removed)
@@ -1,112 +0,0 @@
-# RUN: echo -n abcd > %t.x-txt
-# Preserve input to verify it is not modified
-# RUN: cp %t.x-txt %t-copy.txt
-# RUN: llvm-objcopy -I binary -B i386:x86-64 %t.x-txt %t.o
-# RUN: llvm-readobj -sections -symbols %t.o | FileCheck %s
-# RUN: cmp %t.x-txt %t-copy.txt
-
-# CHECK:      Sections [
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 0
-# CHECK-NEXT:     Name:  (0)
-# CHECK-NEXT:     Type: SHT_NULL (0x0)
-# CHECK-NEXT:     Flags [ (0x0)
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 0
-# CHECK-NEXT:     Info: 0
-# CHECK-NEXT:     AddressAlignment: 0
-# CHECK-NEXT:     EntrySize: 0
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 1
-# CHECK-NEXT:     Name: .strtab
-# CHECK-NEXT:     Type: SHT_STRTAB (0x3)
-# CHECK-NEXT:     Flags [ (0x0)
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 0
-# CHECK-NEXT:     Info: 0
-# CHECK-NEXT:     AddressAlignment: 1
-# CHECK-NEXT:     EntrySize: 0
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 2
-# CHECK-NEXT:     Name: .symtab
-# CHECK-NEXT:     Type: SHT_SYMTAB (0x2)
-# CHECK-NEXT:     Flags [ (0x0)
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 1
-# CHECK-NEXT:     Info: 1
-# CHECK-NEXT:     AddressAlignment: 1
-# CHECK-NEXT:     EntrySize: 24
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 3
-# CHECK-NEXT:     Name: .data
-# CHECK-NEXT:     Type: SHT_PROGBITS (0x1)
-# CHECK-NEXT:     Flags [ (0x3)
-# CHECK-NEXT:       SHF_ALLOC (0x2)
-# CHECK-NEXT:       SHF_WRITE (0x1)
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset:
-# CHECK-NEXT:     Size: 4
-# CHECK-NEXT:     Link: 0
-# CHECK-NEXT:     Info: 0
-# CHECK-NEXT:     AddressAlignment: 1
-# CHECK-NEXT:     EntrySize: 0
-# CHECK-NEXT:   }
-# CHECK-NEXT: ]
-
-# Note: the symbol names are derived from the full path (with non-alnum values
-# replaced with "_"), e.g. "/tmp/a-b.c" should yield
-# _binary__tmp_a_b_c_{start,end,size}.
-# Just check for _binary_{{[_a-zA-Z0-9]*}}_x_txt_{start,end,size} to avoid
-# making assumptions about how this test is run.
-
-# CHECK:      Symbols [
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name:
-# CHECK-NEXT:     Value: 0x0
-# CHECK-NEXT:     Size: 0
-# CHECK-NEXT:     Binding: Local (0x0)
-# CHECK-NEXT:     Type: None (0x0)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: Undefined (0x0)
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: _binary_{{[_a-zA-Z0-9]*}}_x_txt_start
-# CHECK-NEXT:     Value: 0x0
-# CHECK-NEXT:     Size: 0
-# CHECK-NEXT:     Binding: Global (0x1)
-# CHECK-NEXT:     Type: None (0x0)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: .data
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: _binary_{{[_a-zA-Z0-9]*}}_x_txt_end
-# CHECK-NEXT:     Value: 0x4
-# CHECK-NEXT:     Size: 0
-# CHECK-NEXT:     Binding: Global (0x1)
-# CHECK-NEXT:     Type: None (0x0)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: .data
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: _binary_{{[_a-zA-Z0-9]*}}_x_txt_size
-# CHECK-NEXT:     Value: 0x4
-# CHECK-NEXT:     Size: 0
-# CHECK-NEXT:     Binding: Global (0x1)
-# CHECK-NEXT:     Type: None (0x0)
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: Absolute
-# CHECK-NEXT:   }
-# CHECK-NEXT: ]

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-no-paddr.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-no-paddr.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-no-paddr.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-no-paddr.test (removed)
@@ -1,42 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -O binary %t %t2
-# RUN: od -t x2 -v %t2 | FileCheck %s
-# RUN: wc -c < %t2 | FileCheck %s --check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000001000
-    Content:         "c3c3c3c3"
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x1004
-    AddressAlign:    0x0000000000000004
-    Content:         "3232"
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x0000
-    Align: 0x1000
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_R, PF_W ]
-    VAddr: 0x1004
-    PAddr: 0x0000
-    Align: 0x1000
-    Sections:
-      - Section: .data
-
-# CHECK: 0000000 c3c3 c3c3 3232
-# SIZE:  6

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-out-error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-out-error.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-out-error.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-out-error.test (removed)
@@ -1,2 +0,0 @@
-# RUN: not llvm-objcopy -O binary %p/Inputs/alloc-symtab.o %t2 2>&1 >/dev/null | FileCheck %s --check-prefix=SYMTAB
-# SYMTAB: Cannot write symbol table '.symtab' out to binary

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-paddr.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-paddr.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-paddr.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-paddr.test (removed)
@@ -1,45 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -O binary %t %t2
-# RUN: od -t x2 %t2 | FileCheck %s
-# RUN: wc -c < %t2 | FileCheck %s --check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000001000
-    Content:         "c3c3c3c3"
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x2000
-    AddressAlign:    0x0000000000001000
-    Content:         "3232"
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Align: 0x1000
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_R, PF_W ]
-    VAddr: 0x2000
-    PAddr: 0x4000
-    Align: 0x1000
-    Sections:
-      - Section: .data
-
-# CHECK:       0000000 c3c3 c3c3 0000 0000 0000 0000 0000 0000
-# CHECK-NEXT:  0000020 0000 0000 0000 0000 0000 0000 0000 0000
-# CHECK-NEXT:  *
-# CHECK-NEXT:  0030000 3232
-# SIZE:        12290

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-remove-all-but-one.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-remove-all-but-one.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-remove-all-but-one.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-remove-all-but-one.test (removed)
@@ -1,46 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .text -R .text3 -O binary %t %t2
-# RUN: od -Ax -t x1 %t2 | FileCheck %s
-# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Content:         "c3c3c3c3"
-    Size:            0x1000
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Content:         "DEADBEEF"
-    Size:            0x1000
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Content:         "32323232"
-    Size:            0x1000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .text
-      - Section: .text2
-      - Section: .text3
-
-# CHECK: 000000 de ad be ef
-
-# SIZE: 4096

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-remove-end.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-remove-end.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-remove-end.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-remove-end.test (removed)
@@ -1,47 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .text3 -O binary %t %t2
-# RUN: od -Ax -v -t x1 %t2 | FileCheck %s
-# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Content:         "c3c3c3c3"
-    Size:            0x1000
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Content:         "DEADBEEF"
-    Size:            0x1000
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Content:         "32323232"
-    Size:            0x1000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .text
-      - Section: .text2
-      - Section: .text3
-
-# CHECK: 000000 c3 c3 c3 c3
-# CHECK: 001000 de ad be ef
-
-# SIZE: 8192

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-remove-middle.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-remove-middle.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-remove-middle.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-remove-middle.test (removed)
@@ -1,48 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .text2 -O binary %t %t2
-# RUN: od -Ax -v -t x1 %t2 | FileCheck %s
-# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Content:         "c3c3c3c3"
-    Size:            0x1000
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Content:         "DEADBEEF"
-    Size:            0x1000
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Content:         "32323232"
-    Size:            0x1000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .text
-      - Section: .text2
-      - Section: .text3
-
-# CHECK: 000000 c3 c3 c3 c3
-# CHECK: 001000 00 00 00 00
-# CHECK: 002000 32 32 32 32
-
-# SIZE: 12288

Removed: llvm/trunk/test/tools/llvm-objcopy/binary-segment-layout.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/binary-segment-layout.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/binary-segment-layout.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/binary-segment-layout.test (removed)
@@ -1,38 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -O binary %t %t2
-# RUN: od -t x2 %t2 | FileCheck %s
-# RUN: wc -c < %t2 | FileCheck %s --check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000001000
-    Address:         0x00
-    Content:         "c3c3c3c3"
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000008
-    Address:         0x08
-    Content:         "3232"
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0x00
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x08
-    Sections:
-      - Section: .data
-
-# CHECK:       0000000 c3c3 c3c3 0000 0000 3232
-# SIZE:        10

Removed: llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/cannot-delete-dest.test (removed)
@@ -1,18 +0,0 @@
-# REQUIRES: system-windows
-# RUN: yaml2obj %s > %t.o
-# RUN: rm -f %t2.o
-# RUN: cp %t.o %t2.o
-# RUN: attrib +r %t2.o
-
-# This fails because it cannot replace %t2.o
-# RUN: not llvm-objcopy %t.o %t2.o
-
-# But it doesn't leave any temporary files behind.
-# RUN: not ls %t2.o.tmp*
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64

Removed: llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align-binary.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align-binary.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align-binary.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align-binary.test (removed)
@@ -1,40 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -O binary %t %t2
-# RUN: od -t x1 %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000001000
-    Content:         "c3c3c3c3"
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x1008
-    AddressAlign:    0x0000000000000008
-    Content:         "3232"
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Align: 0x1000
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_R, PF_W ]
-    VAddr: 0x1008
-    PAddr: 0x1008
-    Align: 0x1000
-    Sections:
-      - Section: .data
-
-# CHECK: 0000000 c3 c3 c3 c3 00 00 00 00 32 32

Removed: llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/check-addr-offset-align.test (removed)
@@ -1,67 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000001000
-    Content:         "c3c3c3c3"
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x1008
-    AddressAlign:    0x0000000000000008
-    Content:         "3232"
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Align: 0x1000
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_R, PF_W ]
-    VAddr: 0x1008
-    PAddr: 0x1008
-    Align: 0x1000
-    Sections:
-      - Section: .data
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:   ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x1000
-#CHECK-NEXT:    PhysicalAddress: 0x1000
-#CHECK-NEXT:    FileSize: 4
-#CHECK-NEXT:    MemSize: 4
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_X
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x1008
-#CHECK-NEXT:    VirtualAddress: 0x1008
-#CHECK-NEXT:    PhysicalAddress: 0x1008
-#CHECK-NEXT:    FileSize: 2
-#CHECK-NEXT:    MemSize: 2
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_W
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/common-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/common-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/common-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/common-symbol.test (removed)
@@ -1,84 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_HEXAGON
-Symbols:
-  Global:
-    - Name:     test
-      Index:    SHN_COMMON
-      Value:    0x1234
-    - Name:     test2
-      Index:    SHN_HEXAGON_SCOMMON
-      Value:    0x1235
-    - Name:     test3
-      Index:    SHN_HEXAGON_SCOMMON_2
-      Value:    0x1236
-    - Name:     test4
-      Index:    SHN_HEXAGON_SCOMMON_4
-      Value:    0x1237
-    - Name:     test5
-      Index:    SHN_HEXAGON_SCOMMON_8
-      Value:    0x1238
-
-#CHECK:     Symbols [
-#CHECK-NEXT:   Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local (0x0)
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined (0x0)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: test
-#CHECK-NEXT:    Value: 0x1234
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Common (0xFFF2)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: test2
-#CHECK-NEXT:    Value: 0x1235
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Processor Specific (0xFF00)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: test3
-#CHECK-NEXT:    Value: 0x1236
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Processor Specific (0xFF02)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: test4
-#CHECK-NEXT:    Value: 0x1237
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Processor Specific (0xFF03)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: test5
-#CHECK-NEXT:    Value: 0x1238
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Processor Specific (0xFF04)
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/compress-and-decompress-debug-sections-error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/compress-and-decompress-debug-sections-error.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/compress-and-decompress-debug-sections-error.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/compress-and-decompress-debug-sections-error.test (removed)
@@ -1,7 +0,0 @@
-# REQUIRES: zlib
-
-# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
-# RUN: not llvm-objcopy --compress-debug-sections=zlib --decompress-debug-sections %t.o 2>&1 | FileCheck %s
-
-# CHECK: Cannot specify --compress-debug-sections at the same time as --decompress-debug-sections at the same time.
-

Removed: llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default-gnu.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default-gnu.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default-gnu.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default-gnu.test (removed)
@@ -1,9 +0,0 @@
-# REQUIRES: zlib
-
-# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
-# RUN: llvm-objcopy --compress-debug-sections --compress-debug-sections=zlib-gnu %t.o %t-compressed.o
-# RUN: llvm-objdump -s %t-compressed.o | FileCheck %s
-
-# CHECK: .zdebug_foo:
-# CHECK: ZLIB
-

Removed: llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-default.test (removed)
@@ -1,13 +0,0 @@
-# REQUIRES: zlib
-
-# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
-# RUN: llvm-objcopy --compress-debug-sections %t.o %t-compressed.o
-# RUN: llvm-readobj -s %t-compressed.o | FileCheck %s
-
-# CHECK: Name: .debug_foo
-# CHECK-NEXT: Type: SHT_PROGBITS
-# CHECK-NEXT: Flags [
-# CHECK-NEXT: SHF_COMPRESSED
-# CHECK-NEXT: ]
-# CHECK-NOT: Name: .debug_foo
-

Removed: llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-invalid-format.test (removed)
@@ -1,5 +0,0 @@
-# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
-# RUN: not llvm-objcopy --compress-debug-sections=zlib-fake %t.o 2>&1 | FileCheck %s
-
-# CHECK: Invalid or unsupported --compress-debug-sections format: zlib-fake.
-

Removed: llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib-gnu.test (removed)
@@ -1,63 +0,0 @@
-# REQUIRES: zlib
-
-# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
-# RUN: llvm-objcopy --compress-debug-sections=zlib-gnu %t.o %t-compressed.o
-# RUN: llvm-objcopy --decompress-debug-sections %t-compressed.o %t-decompressed.o
-
-# RUN: llvm-objdump -s %t.o -section=.debug_foo | FileCheck %s
-# RUN: llvm-objdump -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-COMPRESSED
-# RUN: llvm-readobj -relocations -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-FLAGS
-# RUN: llvm-readobj -relocations -s %t-decompressed.o | FileCheck %s --check-prefix=CHECK-HEADER
-# RUN: llvm-readobj -relocations -s %t.o | FileCheck %s --check-prefix=CHECK-HEADER
-# RUN: llvm-objdump -s %t-decompressed.o -section=.debug_foo | FileCheck %s
-
-# CHECK: .debug_foo:
-# CHECK-NEXT: 0000 00000000 00000000
-
-# CHECK-HEADER: Index: 1
-# CHECK-HEADER-NEXT: Name: .debug_foo
-# CHECK-HEADER-NEXT: Type: SHT_PROGBITS
-# CHECK-HEADER-NEXT: Flags [
-# CHECK-HEADER-NEXT: ]
-# CHECK-HEADER-NEXT: Address:
-# CHECK-HEADER-NEXT: Offset:
-# CHECK-HEADER-NEXT: Size: 8
-
-# CHECK-COMPRESSED: .zdebug_foo:
-# CHECK-COMPRESSED: ZLIB
-# CHECK-COMPRESSED: .notdebug_foo:
-
-# CHECK-FLAGS-NOT: Name: .debug_foo
-# CHECK-FLAGS: Index: 1
-# CHECK-FLAGS-NEXT: Name: .zdebug_foo
-# CHECK-FLAGS-NEXT: Type: SHT_PROGBITS
-# CHECK-FLAGS-NEXT: Flags [
-# CHECK-FLAGS-NEXT: ]
-# CHECK-FLAGS-NEXT: Address:
-# CHECK-FLAGS-NEXT: Offset:
-# CHECK-FLAGS-NEXT: Size: 23
-
-# CHECK-FLAGS: Name: .notdebug_foo
-# CHECK-FLAGS-NEXT: Type: SHT_PROGBITS
-# CHECK-FLAGS-NEXT: Flags [
-# CHECK-FLAGS-NEXT: ]
-# CHECK-FLAGS-NEXT: Address:
-# CHECK-FLAGS-NEXT: Offset:
-# CHECK-FLAGS-NEXT: Size: 8
-
-# CHECK-FLAGS: Name: .rela.debug_foo
-# CHECK-FLAGS-NEXT: Type: SHT_RELA
-# CHECK-FLAGS-NEXT: Flags [
-# CHECK-FLAGS-NEXT: ]
-# CHECK-FLAGS-NEXT: Address:
-# CHECK-FLAGS-NEXT: Offset:
-# CHECK-FLAGS-NEXT: Size:
-# CHECK-FLAGS-NEXT: Link:
-# CHECK-FLAGS-NEXT: Info: 1
-
-# CHECK-FLAGS: Relocations [
-# CHECK-FLAGS-NEXT:   .rela.debug_foo {
-# CHECK-FLAGS-NEXT:     0x1 R_X86_64_32 - 0x0
-# CHECK-FLAGS-NEXT:   }
-# CHECK-FLAGS-NEXT: ]
-

Removed: llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections-zlib.test (removed)
@@ -1,63 +0,0 @@
-# REQUIRES: zlib
-
-# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
-# RUN: llvm-objcopy --compress-debug-sections=zlib %t.o %t-compressed.o
-# RUN: llvm-objcopy --decompress-debug-sections %t-compressed.o %t-decompressed.o
-
-# RUN: llvm-objdump -s %t.o -section=.debug_foo | FileCheck %s
-# RUN: llvm-objdump -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-COMPRESSED
-# RUN: llvm-readobj -relocations -s %t-compressed.o | FileCheck %s --check-prefix=CHECK-FLAGS
-# RUN: llvm-readobj -relocations -s %t-decompressed.o | FileCheck %s --check-prefix=CHECK-HEADER
-# RUN: llvm-readobj -relocations -s %t.o | FileCheck %s --check-prefix=CHECK-HEADER
-# RUN: llvm-objdump -s %t-decompressed.o -section=.debug_foo | FileCheck %s
-
-# CHECK: .debug_foo:
-# CHECK-NEXT: 0000 00000000 00000000
-
-# CHECK-HEADER: Index: 1
-# CHECK-HEADER-NEXT: Name: .debug_foo
-# CHECK-HEADER-NEXT: Type: SHT_PROGBITS
-# CHECK-HEADER-NEXT: Flags [
-# CHECK-HEADER-NEXT: ]
-# CHECK-HEADER-NEXT: Address:
-# CHECK-HEADER-NEXT: Offset:
-# CHECK-HEADER-NEXT: Size: 8
-
-# CHECK-COMPRESSED: .debug_foo:
-# CHECK-COMPRESSED: .notdebug_foo:
-
-# CHECK-FLAGS: Index: 1
-# CHECK-FLAGS-NEXT: Name: .debug_foo
-# CHECK-FLAGS-NEXT: Type: SHT_PROGBITS
-# CHECK-FLAGS-NEXT: Flags [
-# CHECK-FLAGS-NEXT: SHF_COMPRESSED
-# CHECK-FLAGS-NEXT: ]
-# CHECK-FLAGS-NEXT: Address:
-# CHECK-FLAGS-NEXT: Offset:
-# CHECK-FLAGS-NEXT: Size: 35
-# CHECK-FLAGS-NOT: Name: .debug_foo
-
-# CHECK-FLAGS: Name: .notdebug_foo
-# CHECK-FLAGS-NEXT: Type: SHT_PROGBITS
-# CHECK-FLAGS-NEXT: Flags [
-# CHECK-FLAGS-NEXT: ]
-# CHECK-FLAGS-NEXT: Address:
-# CHECK-FLAGS-NEXT: Offset:
-# CHECK-FLAGS-NEXT: Size: 8
-
-# CHECK-FLAGS: Name: .rela.debug_foo
-# CHECK-FLAGS-NEXT: Type: SHT_RELA
-# CHECK-FLAGS-NEXT: Flags [
-# CHECK-FLAGS-NEXT: ]
-# CHECK-FLAGS-NEXT: Address:
-# CHECK-FLAGS-NEXT: Offset:
-# CHECK-FLAGS-NEXT: Size:
-# CHECK-FLAGS-NEXT: Link:
-# CHECK-FLAGS-NEXT: Info: 1
-
-# CHECK-FLAGS: Relocations [
-# CHECK-FLAGS-NEXT:   .rela.debug_foo {
-# CHECK-FLAGS-NEXT:     0x1 R_X86_64_32 - 0x0
-# CHECK-FLAGS-NEXT:   }
-# CHECK-FLAGS-NEXT: ]
-

Removed: llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/compress-debug-sections.test (removed)
@@ -1,24 +0,0 @@
-# REQUIRES: zlib
-
-# RUN: yaml2obj %p/Inputs/compress-debug-sections.yaml -o %t.o
-# RUN: cp %t.o %t.copy.o
-
-# RUN: llvm-objcopy --compress-debug-sections=zlib     %t.o %tz.o
-# RUN: llvm-objcopy --compress-debug-sections=zlib-gnu %t.o %tzg.o
-# RUN: cp %tz.o %tz.copy.o
-# RUN: cp %tzg.o %tzg.copy.o
-
-# RUN: llvm-objcopy --decompress-debug-sections %tz.o  %t2.o
-# RUN: llvm-objcopy --decompress-debug-sections %tzg.o %t3.o
-
-# Using redirects to avoid llvm-objdump from printing the filename.
-# RUN: llvm-objdump -s -section=.debug_str - < %t.o  > %t.txt
-# RUN: llvm-objdump -s -section=.debug_str - < %t2.o > %t2.txt
-# RUN: llvm-objdump -s -section=.debug_str - < %t3.o > %t3.txt
-
-# RUN: diff %t.txt %t2.txt
-# RUN: diff %t.txt %t3.txt
-
-# RUN: cmp %t.o %t.copy.o
-# RUN: cmp %tz.o %tz.copy.o
-# RUN: cmp %tzg.o %tzg.copy.o

Removed: llvm/trunk/test/tools/llvm-objcopy/deterministic-archive.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/deterministic-archive.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/deterministic-archive.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/deterministic-archive.test (removed)
@@ -1,65 +0,0 @@
-# RUN: yaml2obj %s > %t.o
-
-# Create an archive, specifying U so that timestamps/etc. are preserved.
-# We only test timestamps as a proxy for full deterministic writing; i.e. we
-# assume UID/GIDs are preserved if timestamps are preserved.
-# RUN: touch -t 199505050555.55 %t.o
-# RUN: rm -f %t.a
-# RUN: llvm-ar crsU %t.a %t.o
-
-# Test short flags.
-# RUN: llvm-objcopy -D %t.a %t.2D.a
-# RUN: env TZ=GMT llvm-ar tv %t.2D.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-# RUN: llvm-objcopy -U %t.a %t.2U.a
-# RUN: env TZ=GMT llvm-ar tv %t.2U.a | FileCheck %s --check-prefix=CHECK-NONDETERMINISTIC
-
-# RUN: llvm-strip -D %t.a -o %t.3D.a
-# RUN: env TZ=GMT llvm-ar tv %t.3D.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-# RUN: llvm-strip -U %t.a -o %t.3U.a
-# RUN: env TZ=GMT llvm-ar tv %t.3U.a | FileCheck %s --check-prefix=CHECK-NONDETERMINISTIC
-
-# Test long flags.
-# RUN: llvm-objcopy --enable-deterministic-archives %t.a %t.4D.a
-# RUN: env TZ=GMT llvm-ar tv %t.4D.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-# RUN: llvm-objcopy --disable-deterministic-archives %t.a %t.4U.a
-# RUN: env TZ=GMT llvm-ar tv %t.4U.a | FileCheck %s --check-prefix=CHECK-NONDETERMINISTIC
-
-# RUN: llvm-strip --enable-deterministic-archives %t.a -o %t.5D.a
-# RUN: env TZ=GMT llvm-ar tv %t.5D.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-# RUN: llvm-strip --disable-deterministic-archives %t.a -o %t.5U.a
-# RUN: env TZ=GMT llvm-ar tv %t.5U.a | FileCheck %s --check-prefix=CHECK-NONDETERMINISTIC
-
-# If unspecified, verify that deterministic is the default.
-# RUN: llvm-objcopy %t.a %t.6.a
-# RUN: env TZ=GMT llvm-ar tv %t.6.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-# RUN: llvm-strip %t.a -o %t.7.a
-# RUN: env TZ=GMT llvm-ar tv %t.7.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-
-# If both are specified, last one wins.
-# RUN: llvm-objcopy -U -D %t.a %t.8.a
-# RUN: env TZ=GMT llvm-ar tv %t.8.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-# RUN: llvm-objcopy -D -U %t.a %t.9.a
-# RUN: env TZ=GMT llvm-ar tv %t.9.a | FileCheck %s --check-prefix=CHECK-NONDETERMINISTIC
-# RUN: llvm-objcopy -D -U -D -U --enable-deterministic-archives %t.a %t.10.a
-# RUN: env TZ=GMT llvm-ar tv %t.10.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-
-# RUN: llvm-strip -U -D %t.a -o %t.11.a
-# RUN: env TZ=GMT llvm-ar tv %t.11.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-# RUN: llvm-strip -D -U %t.a -o %t.12.a
-# RUN: env TZ=GMT llvm-ar tv %t.12.a | FileCheck %s --check-prefix=CHECK-NONDETERMINISTIC
-# RUN: llvm-strip -D -U -D -U --enable-deterministic-archives %t.a -o %t.13.a
-# RUN: env TZ=GMT llvm-ar tv %t.13.a | FileCheck %s --check-prefix=CHECK-DETERMINISTIC
-
-# CHECK-DETERMINISTIC: {{[[:space:]]1970[[:space:]]}}
-# CHECK-NONDETERMINISTIC:  {{[[:space:]]1995[[:space:]]}}
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]

Removed: llvm/trunk/test/tools/llvm-objcopy/discard-all.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/discard-all.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/discard-all.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/discard-all.test (removed)
@@ -1,106 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t1
-# RUN: llvm-objcopy --discard-all %t %t2
-# Verify that llvm-objcopy has not modified the input.
-# RUN: cmp %t %t1
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-# RUN: llvm-objcopy -x %t %t3
-# Verify that llvm-objcopy has not modified the input.
-# RUN: cmp %t %t1
-# RUN: cmp %t2 %t3
-
-# Verify that llvm-strip modifies the symbol table the same way.
-
-# RUN: cp %t %t4
-# RUN: llvm-strip --discard-all %t4
-# RUN: cmp %t2 %t4
-
-# RUN: llvm-strip -x %t
-# RUN: cmp %t2 %t
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Local:
-    - Name:     Local
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-    - Name:     LocalSection
-      Type:     STT_SECTION
-      Section:  .text
-    - Name:     LocalFile
-      Type:     STT_FILE
-  Weak:
-    - Name:     Weak
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1008
-  Global:
-    - Name:     Global
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1010
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: LocalSection
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Section
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: LocalFile
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: File
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Global
-#CHECK-NEXT:    Value: 0x1010
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Weak
-#CHECK-NEXT:    Value: 0x1008
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Weak
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/drawf-fission.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/drawf-fission.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/drawf-fission.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/drawf-fission.test (removed)
@@ -1,43 +0,0 @@
-# RUN: llvm-objcopy -extract-dwo %p/Inputs/dwarf.dwo %t
-# RUN: llvm-objcopy -strip-dwo %p/Inputs/dwarf.dwo %t2
-# RUN: llvm-objcopy -split-dwo=%t3 %p/Inputs/dwarf.dwo %t4
-# RUN: llvm-readobj -file-headers -sections %t | FileCheck %s -check-prefix=DWARF
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s -check-prefix=STRIP
-# RUN: diff %t %t3
-# RUN: diff %t2 %t4
-
-#DWARF:     SectionHeaderCount: 8
-
-#DWARF:     Name: .debug_loc.dwo
-#DWARF:     Name: .debug_str.dwo
-#DWARF:     Name: .debug_str_offsets.dwo
-#DWARF:     Name: .debug_info.dwo
-#DWARF:     Name: .debug_abbrev.dwo
-#DWARF:     Name: .debug_line.dwo
-#DWARF:     Name: .strtab
-
-#STRIP:     SectionHeaderCount: 24
-
-#STRIP:    Name: .text
-#STRIP:    Name: .rodata.str1.1
-#STRIP:    Name: .debug_str
-#STRIP:    Name: .debug_abbrev
-#STRIP:    Name: .debug_info
-#STRIP:    Name: .debug_ranges
-#STRIP:    Name: .debug_macinfo
-#STRIP:    Name: .debug_addr
-#STRIP:    Name: .debug_pubnames
-#STRIP:    Name: .debug_pubtypes
-#STRIP:    Name: .comment
-#STRIP:    Name: .note.GNU-stack
-#STRIP:    Name: .debug_frame
-#STRIP:    Name: .debug_line
-#STRIP:    Name: .symtab
-#STRIP:    Name: .rela.text
-#STRIP:    Name: .rela.debug_info
-#STRIP:    Name: .rela.debug_addr
-#STRIP:    Name: .rela.debug_pubnames
-#STRIP:    Name: .rela.debug_pubtypes
-#STRIP:    Name: .rela.debug_frame
-#STRIP:    Name: .rela.debug_line
-#STRIP:    Name: .strtab

Removed: llvm/trunk/test/tools/llvm-objcopy/dump-section.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/dump-section.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/dump-section.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/dump-section.test (removed)
@@ -1,44 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -O binary -j .text %t %t2
-# RUN: llvm-objcopy -O binary -only-keep .text %t %t3
-# RUN: llvm-objcopy --dump-section .text=%t4 %t %t5
-# RUN: llvm-objcopy --dump-section .foo=%t6 %t %t7
-# RUN: not llvm-objcopy --dump-section .bar=%t8 %t %t9 2>&1 | FileCheck %s --check-prefix=NOBITS
-# RUN: od -t x1 %t2 | FileCheck %s
-# RUN: od -t x1 %t6 | FileCheck %s --check-prefix=NON-ALLOC
-# RUN: wc -c %t2 | FileCheck %s --check-prefix=SIZE
-# RUN: diff %t2 %t3
-# RUN: diff %t4 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000001000
-    Content:         "DEADBEEF"
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_WRITE ]
-    Content:         "CAFE"
-  - Name:            .bar
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_WRITE ]
-ProgramHeaders:
-- Type: PT_LOAD
-  Flags: [ PF_X, PF_R ]
-  Sections:
-    - Section: .text
-
-#CHECK: 0000000 de ad be ef
-
-#NON-ALLOC: 0000000 ca fe
-
-#SIZE: 4
-
-#NOBITS: Can't dump section ".bar": it has no contents

Removed: llvm/trunk/test/tools/llvm-objcopy/dynamic-relocations.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/dynamic-relocations.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/dynamic-relocations.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/dynamic-relocations.test (removed)
@@ -1,19 +0,0 @@
-# RUN: llvm-objcopy %p/Inputs/dynrel.elf %t
-# RUN: llvm-readobj -sections -section-data %t | FileCheck %s
-
-#CHECK:         Name: .rela.plt
-#CHECK-NEXT:    Type: SHT_RELA
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      SHF_ALLOC
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Address:
-#CHECK-NEXT:    Offset:
-#CHECK-NEXT:    Size: 24
-#CHECK-NEXT:    Link:
-#CHECK-NEXT:    Info:
-#CHECK-NEXT:    AddressAlignment: 8
-#CHECK-NEXT:    EntrySize: 24
-#CHECK-NEXT:    SectionData (
-#CHECK-NEXT:       0000: 18202000 00000000 07000000 01000000  |.  .............|
-#CHECK-NEXT:       0010: 00000000 00000000                    |........|
-#CHECK-NEXT:    )

Removed: llvm/trunk/test/tools/llvm-objcopy/dynamic.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/dynamic.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/dynamic.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/dynamic.test (removed)
@@ -1,27 +0,0 @@
-# RUN: llvm-objcopy %p/Inputs/dynamic.so %t
-# RUN: llvm-readobj -dynamic-table %t | FileCheck %s
-# RUN: llvm-readobj -sections %t | FileCheck -check-prefix=LINK %s
-
-#CHECK: DynamicSection [
-#CHECK-NEXT:  Tag                Type                 Name/Value
-#CHECK-NEXT:  0x0000000000000006 SYMTAB               0x1C8
-#CHECK-NEXT:  0x000000000000000B SYMENT               24
-#CHECK-NEXT:  0x0000000000000005 STRTAB               0x210
-#CHECK-NEXT:  0x000000000000000A STRSZ                5
-#CHECK-NEXT:  0x0000000000000004 HASH                 0x1F8
-#CHECK-NEXT:  0x0000000000000000 NULL                 0x0
-#CHECK-NEXT:]
-
-#LINK:         Index: 3
-#LINK-NEXT:    Name: .dynstr
-
-#LINK:         Name: .dynamic
-#LINK-NEXT:    Type: SHT_DYNAMIC
-#LINK-NEXT:    Flags [
-#LINK-NEXT:      SHF_ALLOC
-#LINK-NEXT:      SHF_WRITE
-#LINK-NEXT:    ]
-#LINK-NEXT:    Address:
-#LINK-NEXT:    Offset:
-#LINK-NEXT:    Size:
-#LINK-NEXT:    Link: 3

Removed: llvm/trunk/test/tools/llvm-objcopy/dynstr.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/dynstr.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/dynstr.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/dynstr.test (removed)
@@ -1,32 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -sections -section-data %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .dynstr
-    Type:            SHT_STRTAB
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x1000
-    Content:         "002EDEADBEEF002EBAADF00D00"
-
-#CHECK:         Name: .dynstr
-#CHECK-NEXT:    Type: SHT_STRTAB
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      SHF_ALLOC
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Address: 0x1000
-#CHECK-NEXT:    Offset:
-#CHECK-NEXT:    Size: 13
-#CHECK-NEXT:    Link:
-#CHECK-NEXT:    Info:
-#CHECK-NEXT:    AddressAlignment:
-#CHECK-NEXT:    EntrySize:
-#CHECK-NEXT:    SectionData (
-#CHECK-NEXT:      0000: 002EDEAD BEEF002E BAADF00D 00
-#CHECK-NEXT:    )

Removed: llvm/trunk/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/dynsym-error-remove-strtab.test (removed)
@@ -1,3 +0,0 @@
-# RUN: not llvm-objcopy -R .dynstr %p/Inputs/dynsym.so %t 2>&1 >/dev/null | FileCheck %s
-
-# CHECK: Section .dynstr cannot be removed because it is referenced by the section .dynsym

Removed: llvm/trunk/test/tools/llvm-objcopy/dynsym.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/dynsym.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/dynsym.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/dynsym.test (removed)
@@ -1,64 +0,0 @@
-# RUN: llvm-objcopy %p/Inputs/dynsym.so %t
-# RUN: llvm-readobj -dyn-symbols %t | FileCheck %s
-# RUN: llvm-readobj -sections %t | FileCheck -check-prefix=LINK %s
-
-#LINK:         Name: .dynsym
-#LINK-NEXT:    Type: SHT_DYNSYM
-#LINK-NEXT:    Flags [
-#LINK-NEXT:      SHF_ALLOC
-#LINK-NEXT:    ]
-#LINK-NEXT:    Address:
-#LINK-NEXT:    Offset:
-#LINK-NEXT:    Size:
-#LINK-NEXT:    Link: 3
-
-#LINK:         Index: 3
-#LINK-NEXT:    Name: .dynstr
-
-#CHECK: DynamicSymbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: @ (0)
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None (0x0)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined (0x0)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: bang@ (1)
-#CHECK-NEXT:    Value: 0x4000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: Object (0x1)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .bss (0x7)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: bar@ (6)
-#CHECK-NEXT:    Value: 0x1001
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: Function (0x2)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text (0x4)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: baz@ (10)
-#CHECK-NEXT:    Value: 0x2000
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: Object (0x1)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .data (0x5)
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: foo@ (14)
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global (0x1)
-#CHECK-NEXT:    Type: Function (0x2)
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text (0x4)
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/elf32be.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/elf32be.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/elf32be.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/elf32be.test (removed)
@@ -1,28 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS32
-  Data:            ELFDATA2MSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-
-# CHECK: Class: 32-bit
-# CHECK: DataEncoding: BigEndian
-
-# CHECK:      Name: .bss
-# CHECK:      Name: .text
-# CHECK:      Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/elf32le.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/elf32le.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/elf32le.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/elf32le.test (removed)
@@ -1,28 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS32
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-
-# CHECK: Class: 32-bit
-# CHECK: DataEncoding: LittleEndian
-
-# CHECK:      Name: .bss
-# CHECK:      Name: .text
-# CHECK:      Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/elf64be.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/elf64be.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/elf64be.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/elf64be.test (removed)
@@ -1,28 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2MSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-
-# CHECK: Class: 64-bit
-# CHECK: DataEncoding: BigEndian
-
-# CHECK:      Name: .bss
-# CHECK:      Name: .text
-# CHECK:      Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/empty-section.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/empty-section.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/empty-section.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/empty-section.test (removed)
@@ -1,55 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x0
-    AddressAlign:    0x0000000000001000
-    Content:         "00000000"
-  - Name:            .empty
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000001000
-    Content:         ""
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000001000
-    Content:         "00000000"
-
-
-# CHECK:      Name: .text
-# CHECK-NEXT: Type: SHT_PROGBITS
-# CHECK-NEXT: Flags [
-# CHECK-NEXT:   SHF_ALLOC
-# CHECK-NEXT:   SHF_EXECINSTR
-# CHECK-NEXT: ]
-
-# CHECK:      Name: .empty
-# CHECK-NEXT: Type: SHT_PROGBITS
-# CHECK-NEXT: Flags [
-# CHECK-NEXT:   SHF_ALLOC
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address: 0x1000
-# CHECK-NEXT: Offset: 0x2000
-# CHECK-NEXT: Size: 0
-
-# CHECK:      Name: .data
-# CHECK-NEXT: Type: SHT_PROGBITS
-# CHECK-NEXT: Flags [
-# CHECK-NEXT:   SHF_ALLOC
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address: 0x1000
-# CHECK-NEXT: Offset: 0x2000
-# CHECK-NEXT: Size: 4

Removed: llvm/trunk/test/tools/llvm-objcopy/explicit-keep-remove.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/explicit-keep-remove.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/explicit-keep-remove.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/explicit-keep-remove.test (removed)
@@ -1,21 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -R=.test -keep-section=.test %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 5
-
-# CHECK:     Name: .test
-# CHECK:     Name: .symtab
-# CHECK:     Name: .strtab
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/explicit-only-keep-remove.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/explicit-only-keep-remove.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/explicit-only-keep-remove.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/explicit-only-keep-remove.test (removed)
@@ -1,21 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -R=.test -only-keep=.test %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 5
-
-# CHECK:     Name: .test
-# CHECK:     Name: .symtab
-# CHECK:     Name: .strtab
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/fail-no-output-directory.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/fail-no-output-directory.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/fail-no-output-directory.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/fail-no-output-directory.test (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: not llvm-objcopy %t no/such/dir 2>&1 | FileCheck %s
-# CHECK: failed to open no/such/dir:
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-

Removed: llvm/trunk/test/tools/llvm-objcopy/globalize.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/globalize.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/globalize.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/globalize.test (removed)
@@ -1,88 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --globalize-symbol Global \
-# RUN:   --globalize-symbol Local \
-# RUN:   --globalize-symbol Weak \
-# RUN:   --globalize-symbol WeakUndef %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Local:
-    - Name:     Local
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-  Weak:
-    - Name:     Weak
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1008
-    - Name:     WeakUndef
-  Global:
-    - Name:     Global
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1010
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Local
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Global
-#CHECK-NEXT:    Value: 0x1010
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Weak
-#CHECK-NEXT:    Value: 0x1008
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: WeakUndef
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Weak
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/group-big-endian.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/group-big-endian.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/group-big-endian.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/group-big-endian.test (removed)
@@ -1,56 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -remove-section=.text.bar %t %t2
-# RUN: llvm-readobj -elf-section-groups %t2 | FileCheck %s
-
-# In this test the section .text.bar is getting removed, as a result, 
-# the indices of the sections which go after .text.bar will change, 
-# thus the fields Link, Info and the content of .group should be updated.
-
-# CHECK:           Name: .group
-# CHECK-NEXT:      Index: 1
-# CHECK-NEXT:      Link: 3
-# CHECK-NEXT:      Info: 2
-# CHECK-NEXT:      Type: COMDAT (0x1)
-# CHECK-NEXT:      Signature: foo
-# CHECK:           .text.foo (2)
-
---- !ELF
-FileHeader:      
-  Class:           ELFCLASS64
-  Data:            ELFDATA2MSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:        
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            foo
-    Members:         
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text.foo
-  - Name:            .text.bar
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-  - Name:            .text.foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000010
-Symbols:
-  Local:           
-    - Name:            .text.bar
-      Type:            STT_SECTION
-      Section:         .text.bar
-    - Name:            .text.foo
-      Type:            STT_SECTION
-      Section:         .text.foo         
-  Weak:            
-    - Name:            bar
-      Type:            STT_FUNC
-      Section:         .text.bar
-      Size:            0x0000000000000000
-    - Name:            foo
-      Type:            STT_FUNC
-      Section:         .text.foo
-      Size:            0x0000000000000000

Removed: llvm/trunk/test/tools/llvm-objcopy/group-unchanged.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/group-unchanged.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/group-unchanged.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/group-unchanged.test (removed)
@@ -1,56 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -remove-section=.text.bar %t %t2
-# RUN: llvm-readobj -elf-section-groups %t2 | FileCheck %s
-
-# In this test the section .text.bar is getting removed, since this section
-# goes after all the sections comprising a group, the content of the
-# section .group doesn't change.
-
-# CHECK:           Name: .group
-# CHECK-NEXT:      Index: 1
-# CHECK-NEXT:      Link: 3
-# CHECK-NEXT:      Info: 2
-# CHECK-NEXT:      Type: COMDAT (0x1)
-# CHECK-NEXT:      Signature: foo
-# CHECK:           .text.foo (2)
-
---- !ELF
-FileHeader:      
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:        
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            foo
-    Members:         
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text.foo
-  - Name:            .text.foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000010
-  - Name:            .text.bar
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-Symbols:
-  Local:           
-    - Name:            .text.foo
-      Type:            STT_SECTION
-      Section:         .text.foo         
-    - Name:            .text.bar
-      Type:            STT_SECTION
-      Section:         .text.bar
-  Weak:            
-    - Name:            foo
-      Type:            STT_FUNC
-      Section:         .text.foo
-      Size:            0x0000000000000000
-    - Name:            bar
-      Type:            STT_FUNC
-      Section:         .text.bar
-      Size:            0x0000000000000000

Removed: llvm/trunk/test/tools/llvm-objcopy/group.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/group.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/group.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/group.test (removed)
@@ -1,56 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -remove-section=.text.bar %t %t2
-# RUN: llvm-readobj -elf-section-groups %t2 | FileCheck %s
-
-# In this test the section .text.bar is getting removed, as a result, 
-# the indices of the sections which go after .text.bar will change, 
-# thus the fields Link, Info and the content of .group should be updated.
-
-# CHECK:           Name: .group
-# CHECK-NEXT:      Index: 1
-# CHECK-NEXT:      Link: 3
-# CHECK-NEXT:      Info: 2
-# CHECK-NEXT:      Type: COMDAT (0x1)
-# CHECK-NEXT:      Signature: foo
-# CHECK:           .text.foo (2)
-
---- !ELF
-FileHeader:      
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:        
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            foo
-    Members:         
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text.foo
-  - Name:            .text.bar
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-  - Name:            .text.foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR, SHF_GROUP ]
-    AddressAlign:    0x0000000000000010
-Symbols:
-  Local:           
-    - Name:            .text.bar
-      Type:            STT_SECTION
-      Section:         .text.bar
-    - Name:            .text.foo
-      Type:            STT_SECTION
-      Section:         .text.foo         
-  Weak:            
-    - Name:            bar
-      Type:            STT_FUNC
-      Section:         .text.bar
-      Size:            0x0000000000000000
-    - Name:            foo
-      Type:            STT_FUNC
-      Section:         .text.foo
-      Size:            0x0000000000000000

Removed: llvm/trunk/test/tools/llvm-objcopy/help-message.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/help-message.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/help-message.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/help-message.test (removed)
@@ -1,15 +0,0 @@
-# RUN: llvm-objcopy --help | FileCheck --check-prefix=OBJCOPY-USAGE %s
-# RUN: not llvm-objcopy 2>&1 | FileCheck --check-prefix=OBJCOPY-USAGE %s
-# RUN: not llvm-objcopy -abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s
-# RUN: not llvm-objcopy -strip-debug 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES
-
-# RUN: llvm-strip --help | FileCheck --check-prefix=STRIP-USAGE %s
-# RUN: not llvm-strip 2>&1 | FileCheck --check-prefix=STRIP-USAGE %s
-# RUN: not llvm-strip -abcabc 2>&1 | FileCheck --check-prefix=UNKNOWN-ARG %s
-# RUN: not llvm-strip -strip-debug 2>&1 | FileCheck %s --check-prefix=NO-INPUT-FILES
-
-
-# OBJCOPY-USAGE:  USAGE: llvm-objcopy
-# STRIP-USAGE:    USAGE: llvm-strip
-# UNKNOWN-ARG:    unknown argument '-abcabc'
-# NO-INPUT-FILES: No input file specified

Removed: llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/hexagon-unsupported-on-x86.test (removed)
@@ -1,15 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: not llvm-objcopy %t %t2 2>&1 >/dev/null | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Symbols:
-  Global:
-    - Name:     test
-      Index:    SHN_HEXAGON_SCOMMON
-
-# CHECK: Symbol 'test' has unsupported value greater than or equal to SHN_LORESERVE: 65280

Removed: llvm/trunk/test/tools/llvm-objcopy/identical-segments.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/identical-segments.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/identical-segments.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/identical-segments.test (removed)
@@ -1,82 +0,0 @@
-# This test tests that if two possible parent segments have the same offset that
-# they're disambiguated based on their original index. This ensures that cycles
-# do not occur.
-
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj --program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text2
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text
-      - Section: .text2
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text
-      - Section: .text2
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x2000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 4096
-#CHECK-NEXT:    MemSize: 4096
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 8192
-#CHECK-NEXT:    MemSize: 8192
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 8192
-#CHECK-NEXT:    MemSize: 8192
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/input-output-target.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/input-output-target.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/input-output-target.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/input-output-target.test (removed)
@@ -1,22 +0,0 @@
-# RUN: echo abcd > %t.txt
-
-# Preserve input to verify it is not modified
-# RUN: cp %t.txt %t-copy.txt
-
-# -F <target> is equivalent to -I <target> -O <target>
-# RUN: llvm-objcopy -F binary -B i386:x86-64 %t.txt %t.2.txt
-# RUN: cmp %t-copy.txt %t.2.txt
-
-# --target <target> is equivalent to --input-target <target> --output-target <target>
-# RUN: llvm-objcopy --target binary -B i386:x86-64 %t.txt %t.3.txt
-# RUN: cmp %t-copy.txt %t.3.txt
-
-# --target is incompatibile with --input-target/--output-target
-# RUN: not llvm-objcopy --target binary --input-target binary -B i386:x86-64 \
-# RUN:     %t.txt %t.4.txt 2>&1 \
-# RUN:     | FileCheck %s --check-prefix=BAD-FLAG
-# RUN: not llvm-objcopy --target binary --output-target binary -B i386:x86-64 \
-# RUN:     %t.txt %t.4.txt 2>&1 \
-# RUN:     | FileCheck %s --check-prefix=BAD-FLAG
-
-# BAD-FLAG: --target cannot be used with --input-target or --output-target.

Removed: llvm/trunk/test/tools/llvm-objcopy/keep-file-symbols.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/keep-file-symbols.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/keep-file-symbols.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/keep-file-symbols.test (removed)
@@ -1,79 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --strip-all --keep-file-symbols %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s --check-prefix=STRIPALL
-# RUN: llvm-objcopy --keep-file-symbols --strip-symbol foo %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s --check-prefix=STRIP
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_FILE
-      Section:  .text
-  Global:
-    - Name:     bar
-      Type:     STT_FUNC
-      Section:  .text
-
-#STRIPALL: Symbols [
-#STRIPALL-NEXT:  Symbol {
-#STRIPALL-NEXT:    Name:
-#STRIPALL-NEXT:    Value: 0x0
-#STRIPALL-NEXT:    Size: 0
-#STRIPALL-NEXT:    Binding: Local
-#STRIPALL-NEXT:    Type: None
-#STRIPALL-NEXT:    Other: 0
-#STRIPALL-NEXT:    Section: Undefined
-#STRIPALL-NEXT:  }
-#STRIPALL-NEXT:  Symbol {
-#STRIPALL-NEXT:    Name: foo
-#STRIPALL-NEXT:    Value: 0x0
-#STRIPALL-NEXT:    Size: 0
-#STRIPALL-NEXT:    Binding: Local
-#STRIPALL-NEXT:    Type: File
-#STRIPALL-NEXT:    Other: 0
-#STRIPALL-NEXT:    Section: .text
-#STRIPALL-NEXT:  }
-#STRIPALL-NEXT:]
-
-#STRIP: Symbols [
-#STRIP-NEXT:  Symbol {
-#STRIP-NEXT:    Name:
-#STRIP-NEXT:    Value: 0x0
-#STRIP-NEXT:    Size: 0
-#STRIP-NEXT:    Binding: Local
-#STRIP-NEXT:    Type: None
-#STRIP-NEXT:    Other: 0
-#STRIP-NEXT:    Section: Undefined
-#STRIP-NEXT:  }
-#STRIP-NEXT:  Symbol {
-#STRIP-NEXT:    Name: foo
-#STRIP-NEXT:    Value: 0x0
-#STRIP-NEXT:    Size: 0
-#STRIP-NEXT:    Binding: Local
-#STRIP-NEXT:    Type: File
-#STRIP-NEXT:    Other: 0
-#STRIP-NEXT:    Section: .text
-#STRIP-NEXT:  }
-#STRIP-NEXT:  Symbol {
-#STRIP-NEXT:    Name: bar
-#STRIP-NEXT:    Value: 0x0
-#STRIP-NEXT:    Size: 0
-#STRIP-NEXT:    Binding: Global
-#STRIP-NEXT:    Type: Function
-#STRIP-NEXT:    Other: 0
-#STRIP-NEXT:    Section: .text
-#STRIP-NEXT:  }
-#STRIP-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols-mix-globalize.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols-mix-globalize.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols-mix-globalize.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols-mix-globalize.test (removed)
@@ -1,51 +0,0 @@
-# RUN: yaml2obj %s > %t.o
-
-# Tests --keep-global-symbol when used in combination with --globalize-symbol on
-# a different symbol.
-
-# RUN: llvm-objcopy \
-# RUN:   --globalize-symbol Local1 \
-# RUN:   --keep-global-symbol Local2 \
-# RUN:   --globalize-symbol Weak1 \
-# RUN:   --keep-global-symbol Weak2 \
-# RUN:   --globalize-symbol Global1 \
-# RUN:   --keep-global-symbol Global2 \
-# RUN:   %t.o %t.2.o
-# RUN: llvm-readobj -elf-output-style=GNU -symbols %t.2.o | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-Symbols:
-  Local:
-    - Name:        Local1
-      Section:     .text
-    - Name:        Local2
-      Section:     .text
-  Weak:
-    - Name:        Weak1
-      Section:     .text
-    - Name:        Weak2
-      Section:     .text
-  Global:
-    - Name:        Global1
-      Section:     .text
-    - Name:        Global2
-      Section:     .text
-
-# CHECK:      Symbol table '.symtab' contains 7 entries:
-# CHECK-NEXT:    Num: Value Size Type Bind Vis Ndx Name
-# CHECK-NEXT:      0: {{.*}}  LOCAL  {{.*}}
-# CHECK-NEXT:      1: {{.*}}  LOCAL  {{.*}} Local2
-# CHECK-NEXT:      2: {{.*}}  GLOBAL {{.*}} Local1
-# CHECK-NEXT:      3: {{.*}}  GLOBAL {{.*}} Global1
-# CHECK-NEXT:      4: {{.*}}  GLOBAL {{.*}} Global2
-# CHECK-NEXT:      5: {{.*}}  GLOBAL {{.*}} Weak1
-# CHECK-NEXT:      6: {{.*}}  WEAK   {{.*}} Weak2

Removed: llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/keep-global-symbols.test (removed)
@@ -1,99 +0,0 @@
-# RUN: yaml2obj %s > %t.o
-
-# Tests that only global symbols (via -G/--keep-global-symbols) are kept via
-# the several different variants of -G/--keep-global-symbol(s).
-#
-# Local1: Local because "-G Local1" doesn't make symbols global.
-# Local2: Global because of "--globalize-symbol Local2".
-# Weak1: Weak because "-G Weak1" doesn't make symbols global.
-# Weak2: Global because of "--globalize-symbol Weak2".
-# Weak3: Local because no -G flag covers it.
-# Global1: Global because of "-G Global1".
-# Global2: Global because of "--keep-global-symbol Global2".
-# Global3: Global because of "--keep-global-symbols %t-globals1.txt".
-# Global4: Global because of "--keep-global-symbols %t-globals2.txt".
-# Global5: Local, it appears in %t-globals2.txt but only in comments and as
-#     part of another symbol
-# Global6: Local, it appears in %t-globals2.txt but only part of another symbol
-# "Global5 Global6": Global, because it appears in %t-globals2.txt, but we only
-#     trim leading and trailing whitespace. We don't just take the first chunk
-#     that looks like a symbol.
-# Global7: Global, because even though it doesn't appear as any -G flags, does
-#     not get demoted since it's undefined.
-
-# RUN: echo Global2 > %t-globals1.txt
-# RUN: echo "  Global3  " > %t-globals2.txt
-# RUN: echo "Global4 # Global5" >> %t-globals2.txt
-# RUN: echo "  Global5 Global6  " >> %t-globals2.txt
-# RUN: echo "Unknown" >> %t-globals2.txt
-# RUN: echo "   " >> %t-globals2.txt
-# RUN: echo "# File with no symbols" > %t-globals3.txt
-
-# RUN: llvm-objcopy \
-# RUN:   -G Global1 \
-# RUN:   --keep-global-symbol Global2 \
-# RUN:   --keep-global-symbols %t-globals1.txt \
-# RUN:   --keep-global-symbols %t-globals2.txt \
-# RUN:   -G Local1 \
-# RUN:   --globalize-symbol Local2 \
-# RUN:   -G Weak1 \
-# RUN:   --globalize-symbol Weak2 \
-# RUN:   %t.o %t.2.o
-# RUN: llvm-readobj -elf-output-style=GNU -symbols %t.2.o | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-Symbols:
-  Local:
-    - Name:        Local1
-      Section:     .text
-    - Name:        Local2
-      Section:     .text
-  Weak:
-    - Name:        Weak1
-      Section:     .text
-    - Name:        Weak2
-      Section:     .text
-    - Name:        Weak3
-      Section:     .text
-  Global:
-    - Name:        Global1
-      Section:     .text
-    - Name:        Global2
-      Section:     .text
-    - Name:        Global3
-      Section:     .text
-    - Name:        Global4
-      Section:     .text
-    - Name:        Global5
-      Section:     .text
-    - Name:        Global6
-      Section:     .text
-    - Name:        "Global5 Global6"
-      Section:     .text
-    - Name:        Global7
-
-# CHECK:      Symbol table '.symtab' contains 14 entries:
-# CHECK-NEXT:    Num: Value Size Type Bind Vis Ndx Name
-# CHECK-NEXT:      0: {{.*}}  LOCAL  {{.*}}
-# CHECK-NEXT:      1: {{.*}}  LOCAL  {{.*}} Local1
-# CHECK-NEXT:      2: {{.*}}  LOCAL  {{.*}} Global5
-# CHECK-NEXT:      3: {{.*}}  LOCAL  {{.*}} Global6
-# CHECK-NEXT:      4: {{.*}}  LOCAL  {{.*}} Weak3
-# CHECK-NEXT:      5: {{.*}}  GLOBAL {{.*}} Local2
-# CHECK-NEXT:      6: {{.*}}  GLOBAL {{.*}} Global1
-# CHECK-NEXT:      7: {{.*}}  GLOBAL {{.*}} Global2
-# CHECK-NEXT:      8: {{.*}}  GLOBAL {{.*}} Global3
-# CHECK-NEXT:      9: {{.*}}  GLOBAL {{.*}} Global4
-# CHECK-NEXT:     10: {{.*}}  GLOBAL {{.*}} Global5 Global6
-# CHECK-NEXT:     11: {{.*}}  GLOBAL {{.*}} UND Global7
-# CHECK-NEXT:     12: {{.*}}  WEAK   {{.*}} Weak1
-# CHECK-NEXT:     13: {{.*}}  GLOBAL {{.*}} Weak2

Removed: llvm/trunk/test/tools/llvm-objcopy/keep-many.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/keep-many.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/keep-many.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/keep-many.test (removed)
@@ -1,27 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -strip-non-alloc -keep-section=.test -keep-section=.test3 %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test2
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test3
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-
-# CHECK: SectionHeaderCount: 4
-
-# CHECK:     Name: .test
-# CHECK:     Name: .test3
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/keep-only-keep.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/keep-only-keep.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/keep-only-keep.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/keep-only-keep.test (removed)
@@ -1,27 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -keep-section=.test2 -only-keep=.test %t %t2
-# RUN: llvm-objcopy -j .test -keep-section=.test2 %t %t3
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-# RUN: diff %t2 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-  - Name:            .test2
-    Type:            SHT_PROGBITS
-  - Name:            .test3
-    Type:            SHT_PROGBITS
-
-# CHECK: SectionHeaderCount: 6
-
-# CHECK:     Name: .test
-# CHECK:     Name: .test2
-# CHECK:     Name: .symtab
-# CHECK:     Name: .strtab
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/keep-symbol-remove-section.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/keep-symbol-remove-section.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/keep-symbol-remove-section.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/keep-symbol-remove-section.test (removed)
@@ -1,36 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --remove-section .text --keep-symbol foo %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/keep-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/keep-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/keep-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/keep-symbol.test (removed)
@@ -1,66 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --discard-all -K foo --keep-symbol bar %t %t2
-# RUN: llvm-objcopy -K foo -N foo -N bar --keep-symbol bar -N baz %t %t3
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-# RUN: llvm-readobj -symbols %t3 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-    - Name:     bar
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1008
-      Size:     8
-    - Name:     baz
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1010
-      Size:     8
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: foo
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: bar
-#CHECK-NEXT:    Value: 0x1008
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/localize-hidden.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/localize-hidden.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/localize-hidden.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/localize-hidden.test (removed)
@@ -1,181 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -localize-hidden %t %t2
-# RUN: llvm-readobj -relocations -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x2000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-  - Name:            .rel.text
-    Type:            SHT_REL
-    Info:            .text
-    Relocations:
-      - Offset: 0x1000
-        Symbol: undefGlobal
-        Type:   R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:     hiddenLocal
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1008
-      Size:     8
-      Visibility: STV_HIDDEN
-  Weak:
-    - Name:     hiddenWeak
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1010
-      Size:     8
-      Visibility: STV_HIDDEN
-  Global:
-    - Name:     defaultGlobal
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1000
-    - Name:     hiddenGlobal
-      Type:     STT_OBJECT
-      Section:  .data
-      Value:    0x2006
-      Size:     2
-      Visibility: STV_HIDDEN
-    - Name:     hiddenGlobalCommon
-      Type:     STT_OBJECT
-      Index:    SHN_COMMON
-      Value:    0x2006
-      Size:     2
-      Visibility: STV_HIDDEN
-    - Name:     undefGlobal
-      Type:     STT_FUNC
-      Size:     8
-    - Name:     internalGlobal
-      Type:     STT_OBJECT
-      Section:  .data
-      Value:    0x2002
-      Size:     2
-      Visibility: STV_INTERNAL
-    - Name:     protectedGlobal
-      Type:     STT_OBJECT
-      Section:  .data
-      Value:    0x2000
-      Size:     4
-      Visibility: STV_PROTECTED
-
-#CHECK:     Relocations [
-#CHECK-NEXT:  Section (3) .rel.text {
-#CHECK-NEXT:    0x1000 R_X86_64_PC32 undefGlobal 0x0
-#CHECK-NEXT:  }
-#CHECK-NEXT:]
-
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: hiddenLocal
-#CHECK-NEXT:    Value: 0x1008
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other [
-#CHECK-NEXT:      STV_HIDDEN
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: hiddenGlobal
-#CHECK-NEXT:    Value: 0x2006
-#CHECK-NEXT:    Size: 2
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other [
-#CHECK-NEXT:      STV_HIDDEN
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Section: .data
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: internalGlobal
-#CHECK-NEXT:    Value: 0x2002
-#CHECK-NEXT:    Size: 2
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other [
-#CHECK-NEXT:      STV_INTERNAL
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Section: .data
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: hiddenWeak
-#CHECK-NEXT:    Value: 0x1010
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other [
-#CHECK-NEXT:      STV_HIDDEN
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: defaultGlobal
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: hiddenGlobalCommon
-#CHECK-NEXT:    Value: 0x2006
-#CHECK-NEXT:    Size: 2
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other [
-#CHECK-NEXT:      STV_HIDDEN
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Section: Common (0xF
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: undefGlobal
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section:
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: protectedGlobal
-#CHECK-NEXT:    Value: 0x2000
-#CHECK-NEXT:    Size: 4
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other [
-#CHECK-NEXT:      STV_PROTECTED
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Section: .data
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/localize.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/localize.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/localize.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/localize.test (removed)
@@ -1,100 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy \
-# RUN:     --localize-symbol Global \
-# RUN:     -L Local \
-# RUN:     -L Weak \
-# RUN:     -L GlobalCommon \
-# RUN:     %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x2000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-Symbols:
-  Local:
-    - Name:     Local
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-  Weak:
-    - Name:     Weak
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1008
-  Global:
-    - Name:     Global
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1010
-    - Name:     GlobalCommon
-      Type:     STT_OBJECT
-      Index:    SHN_COMMON
-      Value:    0x2006
-      Size:     2
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Local
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Global
-#CHECK-NEXT:    Value: 0x1010
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Weak
-#CHECK-NEXT:    Value: 0x1008
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: GlobalCommon
-#CHECK-NEXT:    Value: 0x2006
-#CHECK-NEXT:    Size: 2
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Common (0xF
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/many-sections.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/many-sections.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/many-sections.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/many-sections.test (removed)
@@ -1,53 +0,0 @@
-RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t
-RUN: llvm-objcopy %t %t2
-RUN: llvm-readobj -file-headers %t2 | FileCheck --check-prefix=EHDR %s
-RUN: llvm-readobj -sections %t2 | FileCheck --check-prefix=SECS %s
-RUN: llvm-readobj -symbols %t2 | grep "Symbol {" | wc -l | FileCheck --check-prefix=SYMS %s
-
-EHDR:      Format: ELF64-x86-64
-EHDR-NEXT: Arch: x86_64
-EHDR-NEXT: AddressSize: 64bit
-EHDR-NEXT: LoadName:
-EHDR-NEXT: ElfHeader {
-EHDR-NEXT:   Ident {
-EHDR-NEXT:     Magic: (7F 45 4C 46)
-EHDR-NEXT:     Class: 64-bit (0x2)
-EHDR-NEXT:     DataEncoding: LittleEndian (0x1)
-EHDR-NEXT:     FileVersion: 1
-EHDR-NEXT:     OS/ABI: SystemV (0x0)
-EHDR-NEXT:     ABIVersion: 0
-EHDR-NEXT:     Unused: (00 00 00 00 00 00 00)
-EHDR-NEXT:   }
-EHDR-NEXT:   Type: Relocatable (0x1)
-EHDR-NEXT:   Machine: EM_X86_64 (0x3E)
-EHDR-NEXT:   Version: 1
-EHDR-NEXT:   Entry: 0x0
-EHDR-NEXT:   ProgramHeaderOffset: 0x0
-EHDR-NEXT:   SectionHeaderOffset:
-EHDR-NEXT:   Flags [ (0x0)
-EHDR-NEXT:   ]
-EHDR-NEXT:   HeaderSize: 64
-EHDR-NEXT:   ProgramHeaderEntrySize: 0
-EHDR-NEXT:   ProgramHeaderCount: 0
-EHDR-NEXT:   SectionHeaderEntrySize: 64
-EHDR-NEXT:   SectionHeaderCount: 0
-EHDR-NEXT:   StringTableSectionIndex: 65535
-EHDR-NEXT: }
-
-SECS: Index: 65285
-SECS-NEXT: Name: .symtab
-SECS-NEXT: Type: SHT_SYMTAB
-SECS: Name: .symtab_shndx
-SECS-NEXT: Type: SHT_SYMTAB_SHNDX
-SECS-NEXT: Flags [ (0x0)
-SECS-NEXT: ]
-SECS-NEXT: Address: 0x0
-SECS-NEXT: Offset:
-# There should be #syms * EntrySize bytes.
-SECS-NEXT: Size: 261136
-SECS-NEXT: Link: 65285
-SECS-NEXT: Info:
-SECS-NEXT: AddressAlignment: 4
-SECS-NEXT: EntrySize: 4
-SECS: Index: 65287
-SYMS: 65284

Removed: llvm/trunk/test/tools/llvm-objcopy/marker-segment.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/marker-segment.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/marker-segment.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/marker-segment.test (removed)
@@ -1,111 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS32
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_ARM
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000001000
-    Content:         "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x2000
-    AddressAlign:    0x0000000000001000
-    Content:         "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
-  - Name:            .xdata
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-  - Name:            .after
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_ALLOC ]
-    Size:            64
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Align: 0x1000
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_R, PF_W ]
-    VAddr: 0x2000
-    PAddr: 0x2000
-    Align: 0x1000
-    Sections:
-      - Section: .data
-  - Type: 0x6474e551 # GNU_STACK
-    Flags: [ PF_R, PF_W ]
-    VAddr: 0x0000
-    PAddr: 0x0000
-    Align: 0x0000
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x2010
-    PAddr: 0x2010
-    Sections:
-      - Section: .xdata
-      - Section: .after
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:   ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x1000
-#CHECK-NEXT:    PhysicalAddress: 0x1000
-#CHECK-NEXT:    FileSize: 16
-#CHECK-NEXT:    MemSize: 16
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_X
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x2000
-#CHECK-NEXT:    VirtualAddress: 0x2000
-#CHECK-NEXT:    PhysicalAddress: 0x2000
-#CHECK-NEXT:    FileSize: 16
-#CHECK-NEXT:    MemSize: 16
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_W
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_GNU_STACK
-#CHECK-NEXT:    Offset: 0x0
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 0
-#CHECK-NEXT:    MemSize: 0
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_W
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 0
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x2010
-#CHECK-NEXT:    VirtualAddress: 0x2010
-#CHECK-NEXT:    PhysicalAddress: 0x2010
-#CHECK-NEXT:    FileSize: 0
-#CHECK-NEXT:    MemSize: 64
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 1
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/no-symbol-relocation.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/no-symbol-relocation.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/no-symbol-relocation.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/no-symbol-relocation.test (removed)
@@ -1,30 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -relocations %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-  - Name:            .rel.text
-    Type:            SHT_REL
-    Link:            .symtab
-    Info:            .text
-    Relocations:
-      - Offset: 0x1000
-        Type:   R_X86_64_RELATIVE
-
-# CHECK:     Relocations [
-# CHECK-NEXT:  Section (2) .rel.text {
-# CHECK-NEXT:    0x1000 R_X86_64_RELATIVE - 0x0
-# CHECK-NEXT:  }
-# CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/null-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/null-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/null-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/null-symbol.test (removed)
@@ -1,28 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            8
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: (0)
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }

Removed: llvm/trunk/test/tools/llvm-objcopy/objcopy-version.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/objcopy-version.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/objcopy-version.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/objcopy-version.test (removed)
@@ -1,5 +0,0 @@
-# RUN: llvm-objcopy -version | FileCheck %s
-# RUN: llvm-objcopy --version | FileCheck %s
-# RUN: llvm-objcopy -V | FileCheck %s
-
-# CHECK: {{ version }}

Removed: llvm/trunk/test/tools/llvm-objcopy/only-keep-many.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/only-keep-many.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/only-keep-many.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/only-keep-many.test (removed)
@@ -1,28 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -j .test1 -j .test2 %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test1
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test2
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test3
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 6
-
-# CHECK:     Name: .test1
-# CHECK:     Name: .test2
-# CHECK:     Name: .symtab
-# CHECK:     Name: .strtab
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/only-keep-remove-strtab.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/only-keep-remove-strtab.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/only-keep-remove-strtab.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/only-keep-remove-strtab.test (removed)
@@ -1,21 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -R .symtab -R .strtab -only-keep=.test %t %t2
-# RUN: llvm-objcopy -j .test -R .strtab -R .symtab %t %t3
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-# RUN: diff %t2 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 3
-
-# CHECK:     Name: .test
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/only-keep-strip-non-alloc.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/only-keep-strip-non-alloc.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/only-keep-strip-non-alloc.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/only-keep-strip-non-alloc.test (removed)
@@ -1,19 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -strip-non-alloc -only-keep=.test %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 3
-
-# CHECK:     Name: .test
-# CHECK:     Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/overlap-chain.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/overlap-chain.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/overlap-chain.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/overlap-chain.test (removed)
@@ -1,117 +0,0 @@
-# This test tests how ParentSegment is set for Segments. In particular this test
-# tests that if a chain of parents forms, the offsets are chosen for parents
-# first despite the order of the list. It also tests multiple branches of the
-# code that assigns parents.
-
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text4
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text5
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text
-      - Section: .text2
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text4
-      - Section: .text5
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text3
-      - Section: .text4
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text2
-      - Section: .text3
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 8192
-#CHECK-NEXT:    MemSize: 8192
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x4000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 8192
-#CHECK-NEXT:    MemSize: 8192
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x3000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 8192
-#CHECK-NEXT:    MemSize: 8192
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x2000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 8192
-#CHECK-NEXT:    MemSize: 8192
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/parent-loop-check.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/parent-loop-check.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/parent-loop-check.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/parent-loop-check.test (removed)
@@ -1,50 +0,0 @@
-# This test has a subtle purpose. Because of the specifics of the layout
-# algorithm if we're not careful cycles can occur when we resolve the order
-# that we should layout segments in. In this test we're making sure that the
-# PT_LOAD segment won't set the PT_NOTE segment as the first to be laid out
-# while the PT_NOTE segment sets the PT_LOAD load to be the first to be laid
-# out. This problem becomes visible if the layout of the file changes due to
-# the removal of a section. We use -O binary here because removing a section
-# in this way won't cause the location of the PT_LOAD segment to change if we
-# don't.
-
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .note -O binary %t %t2
-# RUN: od -Ax -t x1 %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .note
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Content:         "32323232"
-    Size:            32
-  - Name:            .rodata
-    Flags:           [ SHF_ALLOC ]
-    Type:            SHT_PROGBITS
-    Address:         0x1020
-    Size:            4064
-    Content:         "DEADBEEF"
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .note
-      - Section: .rodata
-  - Type: PT_NOTE
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .note
-
-# CHECK: 000000 de ad be ef

Removed: llvm/trunk/test/tools/llvm-objcopy/prefix-symbols.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/prefix-symbols.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/prefix-symbols.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/prefix-symbols.test (removed)
@@ -1,71 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --prefix-symbols prefix %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s --check-prefix=COMMON --check-prefix=BASIC
-# RUN: llvm-objcopy --redefine-sym bar=baz --prefix-symbols prefix %t %t3
-# RUN: llvm-readobj -symbols %t3 | FileCheck %s --check-prefix=COMMON --check-prefix=REDEF
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_SECTION
-      Section:  .text
-    - Name:     bar
-      Type:     STT_FILE
-      Section:  .text
-  Global:
-    - Name:     foobar
-      Type:     STT_FUNC
-      Section:  .text
-
-# COMMON: Symbols [
-# COMMON-NEXT:  Symbol {
-# COMMON-NEXT:    Name:
-# COMMON-NEXT:    Value: 0x0
-# COMMON-NEXT:    Size: 0
-# COMMON-NEXT:    Binding: Local
-# COMMON-NEXT:    Type: None
-# COMMON-NEXT:    Other: 0
-# COMMON-NEXT:    Section: Undefined
-# COMMON-NEXT:  }
-# COMMON-NEXT:  Symbol {
-# COMMON-NEXT:    Name: foo
-# COMMON-NEXT:    Value: 0x0
-# COMMON-NEXT:    Size: 0
-# COMMON-NEXT:    Binding: Local
-# COMMON-NEXT:    Type: Section
-# COMMON-NEXT:    Other: 0
-# COMMON-NEXT:    Section: .text
-# COMMON-NEXT:  }
-# COMMON-NEXT:  Symbol {
-# BASIC-NEXT:    Name: prefixbar
-# REDEF-NEXT:    Name: prefixbaz
-# COMMON-NEXT:    Value: 0x0
-# COMMON-NEXT:    Size: 0
-# COMMON-NEXT:    Binding: Local
-# COMMON-NEXT:    Type: File
-# COMMON-NEXT:    Other: 0
-# COMMON-NEXT:    Section: .text
-# COMMON-NEXT:  }
-# COMMON-NEXT:  Symbol {
-# COMMON-NEXT:    Name: prefixfoobar
-# COMMON-NEXT:    Value: 0x0
-# COMMON-NEXT:    Size: 0
-# COMMON-NEXT:    Binding: Global
-# COMMON-NEXT:    Type: Function
-# COMMON-NEXT:    Other: 0
-# COMMON-NEXT:    Section: .text
-# COMMON-NEXT:  }
-# COMMON-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/program-headers.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/program-headers.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/program-headers.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/program-headers.test (removed)
@@ -1,71 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0xAAAA1000
-    AddressAlign:    0x0000000000001000
-    Content:         "00000000"
-  - Name:            .init
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Content:         "00000000"
-    Address:         0xAAAA1010
-    AddressAlign:    0x0000000000000010
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:         "00000000"
-    Address:         0xAAAA2000
-    AddressAlign:    0x0000000000001000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0xAAAA1000
-    PAddr: 0xFFFF1000
-    Sections:
-      - Section: .text
-      - Section: .init
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0xAAAA2000
-    PAddr: 0xFFFF2000
-    Sections:
-      - Section: .data
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:   ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0xAAAA1000
-#CHECK-NEXT:    PhysicalAddress: 0xFFFF1000
-#CHECK-NEXT:    FileSize: 20
-#CHECK-NEXT:    MemSize: 20
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_X
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x2000
-#CHECK-NEXT:    VirtualAddress: 0xAAAA2000
-#CHECK-NEXT:    PhysicalAddress: 0xFFFF2000
-#CHECK-NEXT:    FileSize: 4
-#CHECK-NEXT:    MemSize: 4
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/pt-phdr.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/pt-phdr.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/pt-phdr.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/pt-phdr.test (removed)
@@ -1,71 +0,0 @@
-# This test simply tests a simple but common real world example of overlapping
-# segments.
-
-# RUN: llvm-objcopy %p/Inputs/pt-phdr.elf %t
-# RUN: llvm-readobj -program-headers %t | FileCheck %s
-
-#CHECK: ProgramHeaders [
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_PHDR
-#CHECK-NEXT:    Offset: 0x40
-#CHECK-NEXT:    VirtualAddress: 0x200040
-#CHECK-NEXT:    PhysicalAddress: 0x200040
-#CHECK-NEXT:    FileSize: 280
-#CHECK-NEXT:    MemSize: 280
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 8
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x0
-#CHECK-NEXT:    VirtualAddress: 0x200000
-#CHECK-NEXT:    PhysicalAddress: 0x200000
-#CHECK-NEXT:    FileSize: 344
-#CHECK-NEXT:    MemSize: 344
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x201000
-#CHECK-NEXT:    PhysicalAddress: 0x201000
-#CHECK-NEXT:    FileSize: 1
-#CHECK-NEXT:    MemSize: 1
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_X
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD
-#CHECK-NEXT:    Offset: 0x2000
-#CHECK-NEXT:    VirtualAddress: 0x202000
-#CHECK-NEXT:    PhysicalAddress: 0x202000
-#CHECK-NEXT:    FileSize: 14
-#CHECK-NEXT:    MemSize: 14
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_W
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_GNU_STACK (0x6474E551)
-#CHECK-NEXT:    Offset: 0x0
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 0
-#CHECK-NEXT:    MemSize: 0
-#CHECK-NEXT:    Flags [
-#CHECK-NEXT:      PF_R
-#CHECK-NEXT:      PF_W
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 0
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/redefine-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/redefine-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/redefine-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/redefine-symbol.test (removed)
@@ -1,81 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --redefine-sym foo=oof --redefine-sym empty= %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-# RUN: not llvm-objcopy --redefine-sym barbar %t %t2 2>&1 | FileCheck %s --check-prefix=BAD-FORMAT
-# RUN: not llvm-objcopy --redefine-sym foo=f1 --redefine-sym foo=f2 %t %t2 2>&1 | FileCheck %s --check-prefix=MULTIPLE-REDEFINITION
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x2000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-Symbols:
-  Global:
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1004
-    - Name:     bar
-      Type:     STT_OBJECT
-      Section:  .data
-      Value:    0x2000
-      Size:     4
-    - Name:     empty
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1008
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: oof
-#CHECK-NEXT:    Value: 0x1004
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: bar
-#CHECK-NEXT:    Value: 0x2000
-#CHECK-NEXT:    Size: 4
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .data
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: 
-#CHECK-NEXT:    Value: 0x1008
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-
-#BAD-FORMAT: Bad format for --redefine-sym
-#MULTIPLE-REDEFINITION: Multiple redefinition of symbol foo

Removed: llvm/trunk/test/tools/llvm-objcopy/reloc-error-remove-symtab.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/reloc-error-remove-symtab.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/reloc-error-remove-symtab.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/reloc-error-remove-symtab.test (removed)
@@ -1,32 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: not llvm-objcopy -R .symtab %t %t2 2>&1 >/dev/null | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-  - Name:            .rel.text
-    Type:            SHT_REL
-    Link:            .symtab
-    Info:            .text
-    Relocations:
-      - Offset: 0x1000
-        Symbol: foo
-        Type:   R_X86_64_PC32
-
-Symbols:
-  Global:
-    - Name:     foo
-      Type:     STT_FUNC
-      Size:     4
-
-# CHECK: Symbol table .symtab cannot be removed because it is referenced by the relocation section .rel.text.

Removed: llvm/trunk/test/tools/llvm-objcopy/reloc-no-symtab.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/reloc-no-symtab.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/reloc-no-symtab.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/reloc-no-symtab.test (removed)
@@ -1,45 +0,0 @@
-# Regression test for the following case:
-# $ cat /tmp/a.c
-# int main() { return 0; }
-# $ clang -static /tmp/a.c -o /tmp/a
-# $ llvm-strip /tmp/a -o /tmp/b
-# llvm-strip: error: Link field value 0 in section .rela.plt is invalid.
-
-# RUN: yaml2obj %s > %t.original
-# RUN: llvm-strip %t.original -o %t.stripped
-# RUN: llvm-readobj -sections %t.original | FileCheck %s
-# RUN: llvm-readobj -sections %t.stripped | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:          .text
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-  - Name:          .rela.plt
-    Type:          SHT_RELA
-    Flags:         [ SHF_ALLOC, SHF_INFO_LINK ]
-    Info:          .got.plt
-    Link:          0
-  - Name:          .plt
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_EXECINSTR ]
-  - Name:          .got.plt
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ALLOC, SHF_WRITE ]
-
-# CHECK:      Name: .rela.plt
-# CHECK-NEXT: Type: SHT_RELA
-# CHECK-NEXT: Flags [
-# CHECK-NEXT:   SHF_ALLOC
-# CHECK-NEXT:   SHF_INFO_LINK
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset:
-# CHECK-NEXT: Size: 0
-# CHECK-NEXT: Link: 0
-# CHECK-NEXT: Info: 4

Removed: llvm/trunk/test/tools/llvm-objcopy/relocatable-phdr.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/relocatable-phdr.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/relocatable-phdr.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/relocatable-phdr.test (removed)
@@ -1,16 +0,0 @@
-# This test ensures an object without a program header will retain zero values
-# for offset and header size when copied with llvm-objcopy.
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -file-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-
-# CHECK:      ProgramHeaderOffset: 0x0
-# CHECK:      ProgramHeaderEntrySize: 0
-# CHECK-NEXT: ProgramHeaderCount: 0

Removed: llvm/trunk/test/tools/llvm-objcopy/remove-multiple-sections.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/remove-multiple-sections.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/remove-multiple-sections.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/remove-multiple-sections.test (removed)
@@ -1,130 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -R .test2 -R .test3 -R .test5 %t %t2
-# RUN: llvm-readobj -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test1
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test2
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test3
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test4
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test5
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test6
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: Sections [
-# CHECK:   Section {
-# CHECK:     Index: 0
-# CHECK:     Name:  (0)
-# CHECK:     Type: SHT_NULL (0x0)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 0
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 1
-# CHECK:     Name: .test1
-# CHECK:     Type: SHT_PROGBITS (0x1)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 0
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 2
-# CHECK:     Name: .test4
-# CHECK:     Type: SHT_PROGBITS (0x1)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 0
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 3
-# CHECK:     Name: .test6
-# CHECK:     Type: SHT_PROGBITS (0x1)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 0
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 4
-# CHECK:     Name: .symtab
-# CHECK:     Type: SHT_SYMTAB (0x2)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 5
-# CHECK:     Info: 1
-# CHECK:     AddressAlignment: 8
-# CHECK:     EntrySize: 24
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 5
-# CHECK:     Name: .strtab
-# CHECK:     Type: SHT_STRTAB (0x3)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 1
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 6
-# CHECK:     Name: .shstrtab
-# CHECK:     Type: SHT_STRTAB (0x3)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 1
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK: ]

Removed: llvm/trunk/test/tools/llvm-objcopy/remove-section-with-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/remove-section-with-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/remove-section-with-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/remove-section-with-symbol.test (removed)
@@ -1,54 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -R .test %t %t2
-# RUN: llvm-readobj -file-headers -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-  - Name:            .test2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-Symbols:
-  Global:
-    - Name:     test
-      Type:     STT_FUNC
-      Section:  .test
-      Value:    0x1000
-      Size:     4
-    - Name:     test2
-      Type:     STT_FUNC
-      Section:  .test2
-      Value:    0x1000
-      Size:     4
-
-# The sections counted here should be .test, .symtab, .strtab, and .shstrtab.
-# The 5th section is the null section.
-#CHECK: SectionHeaderCount: 5
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: test2
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 4
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .test2
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/remove-section.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/remove-section.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/remove-section.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/remove-section.test (removed)
@@ -1,118 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t1
-
-# RUN: llvm-objcopy -R .test2 %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-# Verify that the first run of llvm-objcopy
-# has not modified the input binary.
-# RUN: cmp %t %t1
-
-# RUN: llvm-objcopy -remove-section=.test2 %t1 %t3
-# RUN: cmp %t2 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test1
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test2
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .test3
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 6
-
-# CHECK: Sections [
-# CHECK:   Section {
-# CHECK:     Index: 0
-# CHECK:     Name:  (0)
-# CHECK:     Type: SHT_NULL (0x0)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 0
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 1
-# CHECK:     Name: .test1
-# CHECK:     Type: SHT_PROGBITS (0x1)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 0
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 2
-# CHECK:     Name: .test3
-# CHECK:     Type: SHT_PROGBITS (0x1)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 0
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 3
-# CHECK:     Name: .symtab
-# CHECK:     Type: SHT_SYMTAB (0x2)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 4
-# CHECK:     Info: 1
-# CHECK:     AddressAlignment: 8
-# CHECK:     EntrySize: 24
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 4
-# CHECK:     Name: .strtab
-# CHECK:     Type: SHT_STRTAB (0x3)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 1
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK:   Section {
-# CHECK:     Index: 5
-# CHECK:     Name: .shstrtab
-# CHECK:     Type: SHT_STRTAB (0x3)
-# CHECK:     Flags [ (0x0)
-# CHECK:     ]
-# CHECK:     Address: 0x0
-# CHECK:     Offset:
-# CHECK:     Size:
-# CHECK:     Link: 0
-# CHECK:     Info: 0
-# CHECK:     AddressAlignment: 1
-# CHECK:     EntrySize: 0
-# CHECK:   }
-# CHECK: ]

Removed: llvm/trunk/test/tools/llvm-objcopy/remove-shndx.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/remove-shndx.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/remove-shndx.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/remove-shndx.test (removed)
@@ -1,7 +0,0 @@
-# This test checks to see that a .symtab_shndx section is added to any binary
-# that needs it, even if the original was removed.
-RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t
-RUN: llvm-objcopy -R .symtab_shndx %t %t2
-RUN: llvm-readobj -sections %t2 | FileCheck %s
-
-CHECK: Name: .symtab_shndx (

Removed: llvm/trunk/test/tools/llvm-objcopy/remove-shstrtab-error.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/remove-shstrtab-error.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/remove-shstrtab-error.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/remove-shstrtab-error.test (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: not llvm-objcopy -R .shstrtab %t %t2 2>&1 >/dev/null | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-
-# CHECK: Cannot write section header table because section header string table was removed.

Removed: llvm/trunk/test/tools/llvm-objcopy/remove-symtab.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/remove-symtab.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/remove-symtab.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/remove-symtab.test (removed)
@@ -1,57 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -R .symtab %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-
-#CHECK: SectionHeaderCount: 3
-
-#CHECK:        Sections [
-#CHECK-NEXT:     Section {
-#CHECK-NEXT:       Index: 0
-#CHECK-NEXT:       Name:  (0)
-#CHECK-NEXT:       Type: SHT_NULL (0x0)
-#CHECK-NEXT:       Flags [ (0x0)
-#CHECK-NEXT:       ]
-#CHECK-NEXT:       Address: 0x0
-#CHECK-NEXT:       Offset: 0x0
-#CHECK-NEXT:       Size: 0
-#CHECK-NEXT:       Link: 0
-#CHECK-NEXT:       Info: 0
-#CHECK-NEXT:       AddressAlignment: 0
-#CHECK-NEXT:       EntrySize: 0
-#CHECK-NEXT:     }
-#CHECK-NEXT:     Section {
-#CHECK-NEXT:       Index: 1
-#CHECK-NEXT:       Name: .strtab
-#CHECK-NEXT:       Type: SHT_STRTAB (0x3)
-#CHECK-NEXT:       Flags [ (0x0)
-#CHECK-NEXT:       ]
-#CHECK-NEXT:       Address: 0x0
-#CHECK-NEXT:       Offset:
-#CHECK-NEXT:       Size: 1
-#CHECK-NEXT:       Link: 0
-#CHECK-NEXT:       Info: 0
-#CHECK-NEXT:       AddressAlignment: 1
-#CHECK-NEXT:       EntrySize: 0
-#CHECK-NEXT:     }
-#CHECK-NEXT:     Section {
-#CHECK-NEXT:       Index: 2
-#CHECK-NEXT:       Name: .shstrtab (1)
-#CHECK-NEXT:       Type: SHT_STRTAB (0x3)
-#CHECK-NEXT:       Flags [ (0x0)
-#CHECK-NEXT:       ]
-#CHECK-NEXT:       Address: 0x0
-#CHECK-NEXT:       Offset:
-#CHECK-NEXT:       Size:
-#CHECK-NEXT:       Link: 0
-#CHECK-NEXT:       Info: 0
-#CHECK-NEXT:       AddressAlignment: 1
-#CHECK-NEXT:       EntrySize: 0
-#CHECK-NEXT:     }
-#CHECK-NEXT:   ]

Removed: llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-osproc-mask.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-osproc-mask.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-osproc-mask.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-osproc-mask.test (removed)
@@ -1,115 +0,0 @@
-# Test that cpu/processor-specific SHF_* flags are preserved.
-
-# ===== x86_64 =====
-
-# RUN: yaml2obj -docnum 1 %s > %t-x86_64.o
-# RUN: llvm-objcopy --rename-section=.foo=.bar,alloc %t-x86_64.o
-# RUN: llvm-readobj -sections %t-x86_64.o | FileCheck %s --check-prefix=X86_64
-
---- !ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:          .foo
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_X86_64_LARGE ]
-
-# X86_64:        Name: .bar
-# X86_64-NEXT:   Type: SHT_PROGBITS
-# X86_64-NEXT:   Flags [
-# X86_64-NEXT:     SHF_ALLOC (0x2)
-# X86_64-NEXT:     SHF_WRITE (0x1)
-# X86_64-NEXT:     SHF_X86_64_LARGE (0x10000000)
-# X86_64-NEXT:   ]
-
-# ===== hex =====
-
-# RUN: yaml2obj -docnum 2 %s > %t-hex.o
-# RUN: llvm-objcopy --rename-section=.foo=.bar,alloc %t-hex.o
-# RUN: llvm-readobj -sections %t-hex.o | FileCheck %s --check-prefix=HEX
-
---- !ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_HEXAGON
-Sections:
-  - Name:          .foo
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_HEX_GPREL ]
-
-# HEX:        Name: .bar
-# HEX-NEXT:   Type: SHT_PROGBITS
-# HEX-NEXT:   Flags [
-# HEX-NEXT:     SHF_ALLOC (0x2)
-# HEX-NEXT:     SHF_HEX_GPREL (0x10000000)
-# HEX-NEXT:     SHF_WRITE (0x1)
-# HEX-NEXT:   ]
-
-# ===== mips =====
-
-# RUN: yaml2obj -docnum 3 %s > %t-mips.o
-# RUN: llvm-objcopy --rename-section=.foo=.bar,alloc %t-mips.o
-# RUN: llvm-readobj -sections %t-mips.o | FileCheck %s --check-prefix=MIPS
-
---- !ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_MIPS
-Sections:
-  - Name:          .foo
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_MIPS_NODUPES, SHF_MIPS_NAMES, SHF_MIPS_LOCAL,
-                     SHF_MIPS_NOSTRIP, SHF_MIPS_GPREL, SHF_MIPS_MERGE,
-		     SHF_MIPS_ADDR, SHF_MIPS_STRING ]
-
-# Note: llvm-readobj prints SHF_EXCLUDE/SHF_MASKPROC since specifying all
-# SHF_MIPS_* flags covers the same bitset.
-
-# MIPS:        Name: .bar
-# MIPS-NEXT:   Type: SHT_PROGBITS
-# MIPS-NEXT:   Flags [
-# MIPS-NEXT:     SHF_ALLOC (0x2)
-# MIPS-NEXT:     SHF_EXCLUDE (0x80000000)
-# MIPS-NEXT:     SHF_MASKPROC (0xF0000000)
-# MIPS-NEXT:     SHF_MIPS_ADDR (0x40000000)
-# MIPS-NEXT:     SHF_MIPS_GPREL (0x10000000)
-# MIPS-NEXT:     SHF_MIPS_LOCAL (0x4000000)
-# MIPS-NEXT:     SHF_MIPS_MERGE (0x20000000)
-# MIPS-NEXT:     SHF_MIPS_NAMES (0x2000000)
-# MIPS-NEXT:     SHF_MIPS_NODUPES (0x1000000)
-# MIPS-NEXT:     SHF_MIPS_NOSTRIP (0x8000000)
-# MIPS-NEXT:     SHF_MIPS_STRING (0x80000000)
-# MIPS-NEXT:     SHF_WRITE (0x1)
-# MIPS-NEXT:   ]
-
-# ===== arm =====
-
-# RUN: yaml2obj -docnum 4 %s > %t-arm.o
-# RUN: llvm-objcopy --rename-section=.foo=.bar,alloc %t-arm.o
-# RUN: llvm-readobj -sections %t-arm.o | FileCheck %s --check-prefix=ARM
-
---- !ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_ARM
-Sections:
-  - Name:          .foo
-    Type:          SHT_PROGBITS
-    Flags:         [ SHF_ARM_PURECODE ]
-
-# ARM:        Name: .bar
-# ARM-NEXT:   Type: SHT_PROGBITS
-# ARM-NEXT:   Flags [
-# ARM-NEXT:     SHF_ALLOC (0x2)
-# ARM-NEXT:     SHF_ARM_PURECODE (0x20000000)
-# ARM-NEXT:     SHF_WRITE (0x1)
-# ARM-NEXT:   ]

Removed: llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-preserved.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-preserved.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-preserved.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/rename-section-flag-preserved.test (removed)
@@ -1,74 +0,0 @@
-# RUN: yaml2obj %s > %t
-
-# Single flags on a section with all flags:
-# RUN: llvm-objcopy --rename-section=.foo=.bar,alloc %t %t.alloc
-# RUN: llvm-readobj -sections %t.alloc | FileCheck %s --check-prefixes=CHECK,ALLOC,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,load %t %t.load
-# RUN: llvm-readobj -sections %t.load | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,noload %t %t.noload
-# RUN: llvm-readobj -sections %t.noload | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,readonly %t %t.readonly
-# RUN: llvm-readobj -sections %t.readonly | FileCheck %s --check-prefixes=CHECK
-# RUN: llvm-objcopy --rename-section=.foo=.bar,debug %t %t.debug
-# RUN: llvm-readobj -sections %t.debug | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,code %t %t.code
-# RUN: llvm-readobj -sections %t.code | FileCheck %s --check-prefixes=CHECK,EXEC,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,data %t %t.data
-# RUN: llvm-readobj -sections %t.data | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,rom %t %t.rom
-# RUN: llvm-readobj -sections %t.rom | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,contents %t %t.contents
-# RUN: llvm-readobj -sections %t.contents | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,merge %t %t.merge
-# RUN: llvm-readobj -sections %t.merge | FileCheck %s --check-prefixes=CHECK,MERGE,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,strings %t %t.strings
-# RUN: llvm-readobj -sections %t.strings | FileCheck %s --check-prefixes=CHECK,STRINGS,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,share %t %t.share
-# RUN: llvm-readobj -sections %t.share | FileCheck %s --check-prefixes=CHECK,WRITE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .infolink
-    Type:            SHT_NOBITS
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    Flags:           [ ]
-    Info:            dummy
-    Members:
-      - SectionOrType: GRP_COMDAT
-      - SectionOrType: .foo
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Link:            .infolink
-    Flags:           [ SHF_ALLOC, SHF_COMPRESSED, SHF_EXCLUDE, SHF_EXECINSTR,
-                       SHF_GROUP, SHF_INFO_LINK, SHF_LINK_ORDER, SHF_MERGE,
-                       SHF_OS_NONCONFORMING, SHF_STRINGS, SHF_TLS, SHF_WRITE ]
-    Content:        "a4a4a4a4"
-Symbols:
-  Local:
-  - Name:            dummy
-    Section:         .group
-
-# CHECK:        Name: .bar
-# CHECK-NEXT:   Type: SHT_PROGBITS
-# CHECK-NEXT:   Flags [
-# ALLOC-NEXT:     SHF_ALLOC (0x2)
-# CHECK-NEXT:     SHF_COMPRESSED (0x800)
-# CHECK-NEXT:     SHF_EXCLUDE (0x80000000)
-# EXEC-NEXT:      SHF_EXECINSTR (0x4)
-# CHECK-NEXT:     SHF_GROUP (0x200)
-# CHECK-NEXT:     SHF_INFO_LINK (0x40)
-# CHECK-NEXT:     SHF_LINK_ORDER (0x80)
-# MERGE-NEXT:     SHF_MERGE (0x10)
-# STRINGS-NEXT:   SHF_STRINGS (0x20)
-# CHECK-NEXT:     SHF_TLS (0x400)
-# WRITE-NEXT:     SHF_WRITE (0x1)
-# CHECK-NEXT:   ]
-
-# BAD-FLAG: unrecognized section flag 'xyzzy'

Removed: llvm/trunk/test/tools/llvm-objcopy/rename-section-flag.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/rename-section-flag.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/rename-section-flag.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/rename-section-flag.test (removed)
@@ -1,60 +0,0 @@
-# RUN: yaml2obj %s > %t
-
-# Single flags on a section with no flags:
-# RUN: llvm-objcopy --rename-section=.foo=.bar,alloc %t %t.alloc
-# RUN: llvm-readobj -sections %t.alloc | FileCheck %s --check-prefixes=CHECK,ALLOC,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,load %t %t.load
-# RUN: llvm-readobj -sections %t.load | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,noload %t %t.noload
-# RUN: llvm-readobj -sections %t.noload | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,readonly %t %t.readonly
-# RUN: llvm-readobj -sections %t.readonly | FileCheck %s --check-prefixes=CHECK
-# RUN: llvm-objcopy --rename-section=.foo=.bar,debug %t %t.debug
-# RUN: llvm-readobj -sections %t.debug | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,code %t %t.code
-# RUN: llvm-readobj -sections %t.code | FileCheck %s --check-prefixes=CHECK,EXEC,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,data %t %t.data
-# RUN: llvm-readobj -sections %t.data | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,rom %t %t.rom
-# RUN: llvm-readobj -sections %t.rom | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,contents %t %t.contents
-# RUN: llvm-readobj -sections %t.contents | FileCheck %s --check-prefixes=CHECK,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,merge %t %t.merge
-# RUN: llvm-readobj -sections %t.merge | FileCheck %s --check-prefixes=CHECK,MERGE,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,strings %t %t.strings
-# RUN: llvm-readobj -sections %t.strings | FileCheck %s --check-prefixes=CHECK,STRINGS,WRITE
-# RUN: llvm-objcopy --rename-section=.foo=.bar,share %t %t.share
-# RUN: llvm-readobj -sections %t.share | FileCheck %s --check-prefixes=CHECK,WRITE
-
-# Multiple flags:
-# RUN: llvm-objcopy --rename-section=.foo=.bar,alloc,readonly,strings %t %t.alloc_ro_strings
-# RUN: llvm-readobj -sections %t.alloc_ro_strings | FileCheck %s --check-prefixes=CHECK,ALLOC,STRINGS
-# RUN: llvm-objcopy --rename-section=.foo=.bar,alloc,code %t %t.alloc_code
-# RUN: llvm-readobj -sections %t.alloc_code | FileCheck %s --check-prefixes=CHECK,ALLOC,EXEC,WRITE
-
-# Invalid flags:
-# RUN: not llvm-objcopy --rename-section=.foo=.bar,xyzzy %t %t.xyzzy 2>&1 | FileCheck %s --check-prefix=BAD-FLAG
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-    Content:        "c3c3c3c3"
-
-# CHECK:        Name: .bar
-# CHECK-NEXT:   Type: SHT_PROGBITS
-# CHECK-NEXT:   Flags [
-# ALLOC-NEXT:     SHF_ALLOC (0x2)
-# EXEC-NEXT:      SHF_EXECINSTR (0x4)
-# MERGE-NEXT:     SHF_MERGE (0x10)
-# STRINGS-NEXT:   SHF_STRINGS (0x20)
-# WRITE-NEXT:     SHF_WRITE (0x1)
-# CHECK-NEXT:   ]
-
-# BAD-FLAG: Unrecognized section flag 'xyzzy'. Flags supported for GNU compatibility: alloc, load, noload, readonly, debug, code, data, rom, share, contents, merge, strings.

Removed: llvm/trunk/test/tools/llvm-objcopy/rename-section-multiple.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/rename-section-multiple.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/rename-section-multiple.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/rename-section-multiple.test (removed)
@@ -1,41 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --rename-section=.test1=.test2 --rename-section=.test3=.test4 --rename-section=.test5=.test6 %t %t2
-# RUN: llvm-readobj -file-headers -sections -section-data %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test1
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "c3c3c3c3"
-  - Name:            .test3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "abababab"
-  - Name:            .test7
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "37373737"
-
-# CHECK: SectionHeaderCount: 7
-
-# CHECK: Name: .test2
-# CHECK: SectionData (
-# CHECK-NEXT:   0000: C3C3C3C3
-# CHECK-NEXT: )
-# CHECK: Name: .test4
-# CHECK: SectionData (
-# CHECK-NEXT:   0000: ABABABAB
-# CHECK-NEXT: )
-# CHECK: Name: .test7
-# CHECK: SectionData (
-# CHECK-NEXT:   0000: 37373737
-# CHECK-NEXT: )
-# CHECK: Name: .symtab
-# CHECK: Name: .strtab
-# CHECK: Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/rename-section.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/rename-section.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/rename-section.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/rename-section.test (removed)
@@ -1,30 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --rename-section=.foo=.bar %t %t2
-# RUN: llvm-readobj -file-headers -sections -section-data %t2 | FileCheck %s
-# RUN: not llvm-objcopy --rename-section=.foo.bar --rename-section=.foo=.other %t %t2 2>&1 | FileCheck %s --check-prefix=BAD-FORMAT
-# RUN: not llvm-objcopy --rename-section=.foo=.bar --rename-section=.foo=.other %t %t2 2>&1 | FileCheck %s --check-prefix=MULTIPLE-RENAMES
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .foo
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Content:        "c3c3c3c3"
-
-# CHECK: SectionHeaderCount: 5
-
-# CHECK: Name: .bar
-# CHECK: SectionData (
-# CHECK-NEXT:   0000: C3C3C3C3
-# CHECK-NEXT: )
-# CHECK: Name: .symtab
-# CHECK: Name: .strtab
-# CHECK: Name: .shstrtab
-
-#BAD-FORMAT: Bad format for --rename-section: missing '='
-#MULTIPLE-RENAMES: Multiple renames of section .foo

Removed: llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/section-index-unsupported.test (removed)
@@ -1,15 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: not llvm-objcopy %t %t2 2>&1 >/dev/null | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Symbols:
-  Global:
-    - Name:     test
-      Index:    0xff05
-
-# CHECK: Symbol 'test' has unsupported value greater than or equal to SHN_LORESERVE: 65285

Removed: llvm/trunk/test/tools/llvm-objcopy/sectionless-segment.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/sectionless-segment.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/sectionless-segment.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/sectionless-segment.test (removed)
@@ -1,4 +0,0 @@
-# RUN: llvm-objcopy -O binary %p/Inputs/pt-phdr.elf %t
-# RUN: wc -c < %t | FileCheck %s
-
-# CHECK: 4110

Removed: llvm/trunk/test/tools/llvm-objcopy/segment-shift-section-remove.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/segment-shift-section-remove.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/segment-shift-section-remove.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/segment-shift-section-remove.test (removed)
@@ -1,164 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .text2 %t %t2
-# RUN: llvm-readobj -file-headers -sections -program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Size:            0x1000
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Size:            0x1000
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Size:            0x1000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0x3000
-    PAddr: 0x3000
-    Sections:
-      - Section: .text3
-
-#CHECK: SectionHeaderCount: 6
-
-# CHECK:           Sections [
-# CHECK-NEXT:        Section {
-# CHECK-NEXT:          Index: 0
-# CHECK-NEXT:          Name:  (0)
-# CHECK-NEXT:          Type: SHT_NULL (0x0)
-# CHECK-NEXT:          Flags [ (0x0)
-# CHECK-NEXT:          ]
-# CHECK-NEXT:          Address: 0x0
-# CHECK-NEXT:          Offset: 0x0
-# CHECK-NEXT:          Size: 0
-# CHECK-NEXT:          Link: 0
-# CHECK-NEXT:          Info: 0
-# CHECK-NEXT:          AddressAlignment: 0
-# CHECK-NEXT:          EntrySize: 0
-# CHECK-NEXT:        }
-# CHECK-NEXT:        Section {
-# CHECK-NEXT:          Index: 1
-# CHECK-NEXT:          Name: .text
-# CHECK-NEXT:          Type: SHT_PROGBITS (0x1)
-# CHECK-NEXT:          Flags [ (0x6)
-# CHECK-NEXT:            SHF_ALLOC (0x2)
-# CHECK-NEXT:            SHF_EXECINSTR (0x4)
-# CHECK-NEXT:          ]
-# CHECK-NEXT:          Address: 0x1000
-# CHECK-NEXT:          Offset: 0x1000
-# CHECK-NEXT:          Size: 4096
-# CHECK-NEXT:          Link: 0
-# CHECK-NEXT:          Info: 0
-# CHECK-NEXT:          AddressAlignment: 4096
-# CHECK-NEXT:          EntrySize: 0
-# CHECK-NEXT:        }
-# CHECK-NEXT:        Section {
-# CHECK-NEXT:          Index: 2
-# CHECK-NEXT:          Name: .text3
-# CHECK-NEXT:          Type: SHT_PROGBITS (0x1)
-# CHECK-NEXT:          Flags [ (0x6)
-# CHECK-NEXT:            SHF_ALLOC (0x2)
-# CHECK-NEXT:            SHF_EXECINSTR (0x4)
-# CHECK-NEXT:          ]
-# CHECK-NEXT:          Address: 0x3000
-# CHECK-NEXT:          Offset: 0x2000
-# CHECK-NEXT:          Size: 4096
-# CHECK-NEXT:          Link: 0
-# CHECK-NEXT:          Info: 0
-# CHECK-NEXT:          AddressAlignment: 4096
-# CHECK-NEXT:          EntrySize: 0
-# CHECK-NEXT:        }
-# CHECK-NEXT:        Section {
-# CHECK-NEXT:          Index: 3
-# CHECK-NEXT:          Name: .symtab
-# CHECK-NEXT:          Type: SHT_SYMTAB (0x2)
-# CHECK-NEXT:          Flags [ (0x0)
-# CHECK-NEXT:          ]
-# CHECK-NEXT:          Address: 0x0
-# CHECK-NEXT:          Offset: 0x3000
-# CHECK-NEXT:          Size: 24
-# CHECK-NEXT:          Link: 4
-# CHECK-NEXT:          Info: 1
-# CHECK-NEXT:          AddressAlignment: 8
-# CHECK-NEXT:          EntrySize: 24
-# CHECK-NEXT:        }
-# CHECK-NEXT:        Section {
-# CHECK-NEXT:          Index: 4
-# CHECK-NEXT:          Name: .strtab
-# CHECK-NEXT:          Type: SHT_STRTAB (0x3)
-# CHECK-NEXT:          Flags [ (0x0)
-# CHECK-NEXT:          ]
-# CHECK-NEXT:          Address: 0x0
-# CHECK-NEXT:          Offset: 0x3018
-# CHECK-NEXT:          Size:
-# CHECK-NEXT:          Link: 0
-# CHECK-NEXT:          Info: 0
-# CHECK-NEXT:          AddressAlignment: 1
-# CHECK-NEXT:          EntrySize: 0
-# CHECK-NEXT:        }
-# CHECK-NEXT:        Section {
-# CHECK-NEXT:          Index: 5
-# CHECK-NEXT:          Name: .shstrtab
-# CHECK-NEXT:          Type: SHT_STRTAB (0x3)
-# CHECK-NEXT:          Flags [ (0x0)
-# CHECK-NEXT:          ]
-# CHECK-NEXT:          Address: 0x0
-# CHECK-NEXT:          Offset:
-# CHECK-NEXT:          Size:
-# CHECK-NEXT:          Link: 0
-# CHECK-NEXT:          Info: 0
-# CHECK-NEXT:          AddressAlignment: 1
-# CHECK-NEXT:          EntrySize: 0
-# CHECK-NEXT:        }
-# CHECK-NEXT:      ]
-
-
-# CHECK:     ProgramHeaders [
-# CHECK-NEXT:  ProgramHeader {
-# CHECK-NEXT:    Type: PT_LOAD (0x1)
-# CHECK-NEXT:    Offset: 0x1000
-# CHECK-NEXT:    VirtualAddress: 0x1000
-# CHECK-NEXT:    PhysicalAddress: 0x1000
-# CHECK-NEXT:    FileSize: 4096
-# CHECK-NEXT:    MemSize: 4096
-# CHECK-NEXT:    Flags [ (0x4)
-# CHECK-NEXT:      PF_R (0x4)
-# CHECK-NEXT:    ]
-# CHECK-NEXT:    Alignment: 4096
-# CHECK-NEXT:  }
-# CHECK-NEXT:  ProgramHeader {
-# CHECK-NEXT:    Type: PT_LOAD (0x1)
-# CHECK-NEXT:    Offset: 0x2000
-# CHECK-NEXT:    VirtualAddress: 0x3000
-# CHECK-NEXT:    PhysicalAddress: 0x3000
-# CHECK-NEXT:    FileSize: 4096
-# CHECK-NEXT:    MemSize: 4096
-# CHECK-NEXT:    Flags [ (0x5)
-# CHECK-NEXT:      PF_R (0x4)
-# CHECK-NEXT:      PF_X (0x1)
-# CHECK-NEXT:    ]
-# CHECK-NEXT:    Alignment: 4096
-# CHECK-NEXT:  }
-# CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/segment-shift.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/segment-shift.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/segment-shift.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/segment-shift.test (removed)
@@ -1,70 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Size:            0x1000
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Size:            0x1000
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Size:            0x1000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .text
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    VAddr: 0x3000
-    PAddr: 0x3000
-    Sections:
-      - Section: .text3
-
-# CHECK:     ProgramHeaders [
-# CHECK-NEXT:  ProgramHeader {
-# CHECK-NEXT:    Type: PT_LOAD (0x1)
-# CHECK-NEXT:    Offset: 0x1000
-# CHECK-NEXT:    VirtualAddress: 0x1000
-# CHECK-NEXT:    PhysicalAddress: 0x1000
-# CHECK-NEXT:    FileSize: 4096
-# CHECK-NEXT:    MemSize: 4096
-# CHECK-NEXT:    Flags [ (0x4)
-# CHECK-NEXT:      PF_R (0x4)
-# CHECK-NEXT:    ]
-# CHECK-NEXT:    Alignment: 4096
-# CHECK-NEXT:  }
-# CHECK-NEXT:  ProgramHeader {
-# CHECK-NEXT:    Type: PT_LOAD (0x1)
-# CHECK-NEXT:    Offset: 0x2000
-# CHECK-NEXT:    VirtualAddress: 0x3000
-# CHECK-NEXT:    PhysicalAddress: 0x3000
-# CHECK-NEXT:    FileSize: 4096
-# CHECK-NEXT:    MemSize: 4096
-# CHECK-NEXT:    Flags [ (0x5)
-# CHECK-NEXT:      PF_R (0x4)
-# CHECK-NEXT:      PF_X (0x1)
-# CHECK-NEXT:    ]
-# CHECK-NEXT:    Alignment: 4096
-# CHECK-NEXT:  }
-# CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/segment-test-remove-section.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/segment-test-remove-section.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/segment-test-remove-section.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/segment-test-remove-section.test (removed)
@@ -1,156 +0,0 @@
-# This test is checking to ensure that if a section is removed in the presence
-# of a segment that the segment maintains its shape and properties and that any
-# section inside that segment maintains the relative positioning it had in the
-# segment. Note worthy is that .text3 keeps its offset despite it being
-# possible to place it after .text when .text2 is removed.
-
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .text2 %t %t2
-# RUN: llvm-readobj -file-headers -program-headers -sections %t2 | FileCheck %s
-# RUN: od -t x1 -j 8192 %t2 | FileCheck %s --check-prefix=DATA
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Size:            4096
-    Content:         "DEADBEEF"
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Size:            4096
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text
-      - Section: .text2
-      - Section: .text3
-
-# Make sure that when we remove a section we overwrite it with zeros
-# DATA: 0020000 00 00 00 00
-
-#CHECK: SectionHeaderCount: 6
-
-# CHECK: Sections [
-# CHECK:   Section {
-# CHECK-NEXT:     Index: 0
-# CHECK-NEXT:     Name:  (0)
-# CHECK-NEXT:     Type: SHT_NULL (0x0)
-# CHECK-NEXT:     Flags [ (0x0)
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 0
-# CHECK-NEXT:     Info: 0
-# CHECK-NEXT:     AddressAlignment: 0
-# CHECK-NEXT:     EntrySize: 0
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 1
-# CHECK-NEXT:     Name: .text
-# CHECK-NEXT:     Type: SHT_PROGBITS
-# CHECK-NEXT:     Flags [
-# CHECK-NEXT:       SHF_ALLOC
-# CHECK-NEXT:       SHF_EXECINSTR
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x1000
-# CHECK-NEXT:     Offset: 0x1000
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 0
-# CHECK-NEXT:     Info: 0
-# CHECK-NEXT:     AddressAlignment: 4096
-# CHECK-NEXT:     EntrySize: 0
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 2
-# CHECK-NEXT:     Name: .text3
-# CHECK-NEXT:     Type: SHT_PROGBITS (0x1)
-# CHECK-NEXT:     Flags [
-# CHECK-NEXT:       SHF_ALLOC
-# CHECK-NEXT:       SHF_EXECINSTR
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x3000
-# CHECK-NEXT:     Offset: 0x3000
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 0
-# CHECK-NEXT:     Info: 0
-# CHECK-NEXT:     AddressAlignment: 4096
-# CHECK-NEXT:     EntrySize: 0
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 3
-# CHECK-NEXT:     Name: .symtab
-# CHECK-NEXT:     Type: SHT_SYMTAB (0x2)
-# CHECK-NEXT:     Flags [ (0x0)
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 4
-# CHECK-NEXT:     Info: 1
-# CHECK-NEXT:     AddressAlignment: 8
-# CHECK-NEXT:     EntrySize: 24
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 4
-# CHECK-NEXT:     Name: .strtab
-# CHECK-NEXT:     Type: SHT_STRTAB (0x3)
-# CHECK-NEXT:     Flags [ (0x0)
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 0
-# CHECK-NEXT:     Info: 0
-# CHECK-NEXT:     AddressAlignment: 1
-# CHECK-NEXT:     EntrySize: 0
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Section {
-# CHECK-NEXT:     Index: 5
-# CHECK-NEXT:     Name: .shstrtab
-# CHECK-NEXT:     Type: SHT_STRTAB (0x3)
-# CHECK-NEXT:     Flags [ (0x0)
-# CHECK-NEXT:     ]
-# CHECK-NEXT:     Address: 0x0
-# CHECK-NEXT:     Offset:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Link: 0
-# CHECK-NEXT:     Info: 0
-# CHECK-NEXT:     AddressAlignment: 1
-# CHECK-NEXT:     EntrySize: 0
-# CHECK-NEXT:   }
-# CHECK-NEXT: ]
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 12288
-#CHECK-NEXT:    MemSize: 12288
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/strict-no-add.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strict-no-add.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strict-no-add.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strict-no-add.test (removed)
@@ -1,10 +0,0 @@
-# This test makes sure that sections added at the end that don't have symbols
-# defined in them don't trigger the creation of a large index table.
-
-RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t.0
-RUN: cat %p/Inputs/alloc-symtab.o > %t
-RUN: llvm-objcopy -R .text -R s0 -R s1 -R s2 -R s3 -R s4 -R s5 -R s6 %t.0 %t2
-RUN: llvm-objcopy -add-section=.s0=%t -add-section=.s1=%t -add-section=.s2=%t %t2 %t2
-RUN: llvm-readobj -sections %t2 | FileCheck --check-prefix=SECS %s
-
-SECS-NOT: Name: .symtab_shndx

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-all-and-keep-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-all-and-keep-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-all-and-keep-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-all-and-keep-symbol.test (removed)
@@ -1,78 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t1
-# RUN: llvm-objcopy --strip-all --keep-symbol foo %t %t2
-# RUN: llvm-readobj -sections -symbols %t2 | FileCheck %s
-
-# Verify that the first run of llvm-objcopy
-# has not modified the input binary.
-# RUN: cmp %t %t1
-
-# RUN: llvm-strip -keep-symbol=foo %t1
-# RUN: cmp %t1 %t2
-
-# RUN: cp %t %t3
-# RUN: llvm-strip --keep-symbol foo %t3
-# RUN: cmp %t1 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .gnu.warning.foo
-    Type:            SHT_PROGBITS
-  - Name:            .debug_bar
-    Type:            SHT_PROGBITS
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-    - Name:     bar
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1008
-      Size:     8
-    - Name:     baz
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1010
-      Size:     8
-
-# CHECK:     Name: .text
-# CHECK:     Name: .gnu.warning.foo
-# CHECK:     Name: .symtab
-# CHECK:     Name: .strtab
-# CHECK:     Name: .shstrtab
-# CHECK-NOT: Name: .debug_bar
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: foo
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-all-and-remove.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-all-and-remove.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-all-and-remove.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-all-and-remove.test (removed)
@@ -1,49 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t1
-
-# RUN: llvm-strip -remove-section=.text.bar %t
-# RUN: llvm-readobj -file-headers -sections -symbols %t | FileCheck %s
-
-# RUN: llvm-objcopy -strip-all -remove-section=.text.bar %t1 %t1
-# RUN: cmp %t %t1
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .debug_foo
-    Type:            SHT_PROGBITS
-    Content:         "00000000"
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-  - Name:            .text.bar
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-Symbols:
-  Global:
-    - Name: debugfoo
-      Section: .debug_foo
-    - Name: foo
-      Section: .text
-    - Name: bar
-      Section: .text.bar
- 
-# CHECK: SectionHeaderCount: 3
-
-# CHECK:     Name: .text
-# CHECK:     Name: .shstrtab
-# CHECK-NOT: Name: .text.bar
-# CHECK-NOT: Name: .debug_foo
-# CHECK-NOT: Name: .symtab
-
-# Check that *only* foo is copied and no debugfoo or textbar
-# CHECK:      Symbols [
-# CHECK-NEXT: ]

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-all-gnu.test (removed)
@@ -1,57 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t1
-# RUN: llvm-objcopy --strip-all-gnu %t %t2
-# RUN: llvm-strip --strip-all-gnu %t -o %t3
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-# RUN: cmp %t2 %t3
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .dynstr
-    Type:            SHT_STRTAB
-    Flags:           [ SHF_ALLOC ]
-  - Name:            .symtab.dyn
-    Type:            SHT_SYMTAB
-    Flags:           [ SHF_ALLOC ]
-    Type:            SHT_NOBITS
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Size:            4
-  - Name:            .debug_info
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-    AddressAlign:    0x1
-    Size:            4
-  - Name:            .debug_loc
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    AddressAlign:    0x1
-    Size:            4
-  - Name:            .comment
-    Type:            SHT_PROGBITS
-  - Name:            .random_section_name
-    Type:            SHT_PROGBITS
-  - Name:            .debug_not_a_real_debug_section
-    Type:            SHT_PROGBITS
-  - Name:            .rel.text
-    Type:            SHT_REL
-    Info:            .text
-  - Name:            .rela.text
-    Type:            SHT_RELA
-    Info:            .text
-
-# CHECK: SectionHeaderCount: 8
-
-# CHECK:      Name: .dynstr
-# CHECK:      Name: .symtab.dyn
-# CHECK:      Name: .text
-# CHECK:      Name: .debug_loc
-# CHECK:      Name: .comment
-# CHECK:      Name: .random_section_name
-# CHECK:      Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-all.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-all.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-all.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-all.test (removed)
@@ -1,77 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t3
-# RUN: llvm-objcopy --strip-all %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-# Verify that the previous llvm-objcopy's run has not modified the input.
-# RUN: cmp %t %t3
-
-# RUN: llvm-strip %t3 
-# RUN: cmp %t2 %t3
-
-# RUN: cp %t %t4
-# RUN: llvm-strip %t4 -o %t5
-# RUN: cmp %t2 %t5
-
-# Verify that the previous llvm-strip's run has not modified the input.
-# RUN: cmp %t %t4
-
-# RUN: cp %t %t-should-remain-the-same
-# RUN: llvm-strip %t4 -o %t-should-remain-the-same -o %t-should-be-stripped
-# RUN: cmp %t2 %t-should-be-stripped
-# RUN: cmp %t %t-should-remain-the-same
-
-# RUN: rm -f %t.a
-# RUN: llvm-ar crs %t.a %t
-# RUN: llvm-objcopy --strip-all %t.a %t.a
-# RUN: llvm-ar p %t.a > %t6
-# RUN: cmp %t2 %t6
-
-# RUN: cp %t %t7
-# RUN: llvm-strip -strip-all %t7
-# RUN: cmp %t2 %t7
-
-# RUN: cp %t %t8
-# RUN: llvm-strip --strip-all %t8
-# RUN: cmp %t2 %t8
-
-# RUN: cp %t %t9
-# RUN: llvm-objcopy -S %t9 %t9
-# RUN: cmp %t2 %t9
-
-# RUN: cp %t %t10
-# RUN: llvm-strip -s %t10
-# RUN: cmp %t2 %t10
-
-# Verify that a non-existent symbol table (after first call to llvm-strip)
-# can be handled correctly.
-# RUN: cp %t %t11
-# RUN: llvm-strip --strip-all --keep-symbol=unavailable_symbol %t11
-# RUN: llvm-strip --strip-all --keep-symbol=unavailable_symbol %t11
-# RUN: cmp %t2 %t11
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_ALLOC ]
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-  - Name:            .blarg
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-  - Name:            .gnu.warning.foo
-    Type:            SHT_PROGBITS
-
-# CHECK: SectionHeaderCount: 5
-
-# CHECK: Name: .bss
-# CHECK: Name: .text
-# CHECK: Name: .gnu.warning.foo
-# CHECK: Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-debug-and-remove.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-debug-and-remove.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-debug-and-remove.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-debug-and-remove.test (removed)
@@ -1,68 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t1
-
-# RUN: llvm-strip -strip-debug -remove-section=.text.bar %t
-# RUN: llvm-readobj -file-headers -sections -symbols %t | FileCheck %s
-
-# RUN: llvm-objcopy -strip-debug -remove-section=.text.bar %t1 %t1
-# RUN: cmp %t %t1
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .debug_foo
-    Type:            SHT_PROGBITS
-    Content:         "00000000"
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-  - Name:            .text.bar
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-Symbols:
-  Global:
-    - Name: debugfoo
-      Section: .debug_foo
-    - Name: foo
-      Section: .text
-    - Name: bar
-      Section: .text.bar
- 
-# CHECK: SectionHeaderCount: 5
-
-# CHECK:     Name: .text
-# CHECK:     Name: .symtab
-# CHECK:     Name: .strtab
-# CHECK:     Name: .shstrtab
-# CHECK-NOT: Name: .text.bar
-# CHECK-NOT: Name: .debug_foo
-
-# Check that *only* foo is copied and no debugfoo or textbar
-# CHECK:      Symbols [
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name:
-# CHECK-NEXT:     Value:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Binding:
-# CHECK-NEXT:     Type:
-# CHECK-NEXT:     Other:
-# CHECK-NEXT:     Section: Undefined
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: foo
-# CHECK-NEXT:     Value:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Binding: Global
-# CHECK-NEXT:     Type:
-# CHECK-NEXT:     Other:
-# CHECK-NEXT:     Section: .text
-# CHECK-NEXT:   }
-# CHECK-NEXT: ]

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-debug.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-debug.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-debug.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-debug.test (removed)
@@ -1,142 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t3
-# RUN: llvm-objcopy -strip-debug %t %t2
-# RUN: llvm-readobj -file-headers -sections -symbols %t2 | FileCheck %s
-
-# Verify that the previous run of llvm-objcopy has not modified the input.
-# RUN: cmp %t %t3
-
-# RUN: llvm-strip -strip-debug %t3
-# RUN: cmp %t2 %t3
-
-# RUN: cp %t %t4
-# RUN: llvm-strip -d %t4
-# RUN: cmp %t2 %t4
-
-# RUN: cp %t %t5
-# RUN: llvm-strip -g %t5
-# RUN: cmp %t2 %t5
-
-# RUN: cp %t %t6
-# RUN: llvm-strip -S %t6
-# RUN: cmp %t2 %t6
-
-# RUN: rm -f %t.a
-# RUN: llvm-ar crs %t.a %t
-# RUN: llvm-objcopy --strip-debug %t.a %t.a
-# RUN: llvm-ar p %t.a > %t7
-# RUN: cmp %t2 %t7
-
-# Verify that an archive with multiple object files is handled correctly.
-# RUN: cp %t %t.duplicate
-# RUN: cp %t2 %t.duplicate.stripped
-# RUN: rm -f %t.multiple-stripped-obj.a
-# RUN: llvm-ar crs %t.multiple-stripped-obj.a %t2 %t.duplicate.stripped
-# RUN: rm -f %t.multiple-obj.a
-# RUN: llvm-ar crs %t.multiple-obj.a %t %t.duplicate
-# RUN: llvm-objcopy --strip-debug %t.multiple-obj.a %t.multiple-obj.stripped.a
-# RUN: llvm-ar p %t.multiple-stripped-obj.a > %t.multiple-stripped-obj.a.dump
-# RUN: llvm-ar p %t.multiple-obj.stripped.a > %t.multiple-obj.stripped.a.dump
-# RUN: cmp %t.multiple-stripped-obj.a.dump %t.multiple-obj.stripped.a.dump
-
-# We can not use %t inside the patterns passed to FileCheck,
-# thus we have to use "recognizable" file names.
-# RUN: cp %t %t1.o
-# RUN: cp %s %t2.txt
-# RUN: cp %t %t3.o
-# RUN: rm -f %t.non-object.a
-# RUN: llvm-ar cr %t.non-object.a %t1.o %t2.txt %t3.o
-# RUN: llvm-ar t %t.non-object.a | FileCheck %s --check-prefix=NON-OBJECT-ARCHIVE-MEMBERS
-
-# NON-OBJECT-ARCHIVE-MEMBERS: 1.o
-# NON-OBJECT-ARCHIVE-MEMBERS-NEXT: 2.txt
-# NON-OBJECT-ARCHIVE-MEMBERS-NEXT: 3.o
-
-# RUN: cp %t.non-object.a %t.non-object.copy.a
-# RUN: not llvm-objcopy --strip-debug %t.non-object.a %t2.non-object.a 2>&1 | FileCheck %s --check-prefix=BAD-FORMAT
-
-# BAD-FORMAT: The file was not recognized as a valid object file
-
-# Verify that %t.non-object.a has not been modified.
-# RUN: cmp %t.non-object.a %t.non-object.copy.a
-
-# RUN: rm -f %t.thin.a
-# Copy %t to %t.thin.archive.member to avoid changing %t directly.
-# RUN: cp %t %t.thin.archive.member
-# RUN: llvm-ar crsT %t.thin.a %t.thin.archive.member
-# RUN: llvm-objcopy --strip-debug %t.thin.a %t2.thin.a
-# RUN: cat %t.thin.a | FileCheck %s --check-prefix=VERIFY-THIN-ARCHIVE
-# RUN: cat %t2.thin.a | FileCheck %s --check-prefix=VERIFY-THIN-ARCHIVE
-
-# VERIFY-THIN-ARCHIVE: !<thin>
-
-# Verify that the member of a thin archive was properly modified.
-# RUN: cmp %t2 %t.thin.archive.member
-
-# RUN: rm -f %t.non-object.thin.a
-# RUN: llvm-ar crsT %t.non-object.thin.a %t1.o %t2.txt %t3.o
-# RUN: cp %t.non-object.thin.a %t.non-object.thin.copy.a
-# RUN: not llvm-objcopy --strip-debug %t.non-object.thin.a %t.non-object.thin.a 2>&1 | FileCheck %s --check-prefix=BAD-FORMAT
-
-# Verify that in the case of error thin archive and its memebers are not getting modified.
-# RUN: cmp %t.non-object.thin.a %t.non-object.thin.copy.a
-# RUN: cmp %t %t1.o
-# RUN: cmp %s %t2.txt
-# RUN: cmp %t %t3.o
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .debugfoo
-    Type:            SHT_PROGBITS
-    Content:         "00000000"
-  - Name:            .zdebugfoo
-    Type:            SHT_PROGBITS
-    Content:         "00000000"
-  - Name:            .gdb_index
-    Type:            SHT_PROGBITS
-    Content:         "00000000"
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000000010
-    Content:         "00000000"
-Symbols:
-  Global:
-    - Name: foo
-      Section: .text
-    - Name: debugfoo
-      Section: .debugfoo
-
-# CHECK: SectionHeaderCount: 5
-
-# CHECK: Name: .text
-# CHECK: Name: .symtab
-# CHECK: Name: .strtab
-# CHECK: Name: .shstrtab
-
-# Check that *only* foo is copied and not debugfoo
-# CHECK:      Symbols [
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name:
-# CHECK-NEXT:     Value:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Binding:
-# CHECK-NEXT:     Type:
-# CHECK-NEXT:     Other:
-# CHECK-NEXT:     Section: Undefined
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: foo
-# CHECK-NEXT:     Value:
-# CHECK-NEXT:     Size:
-# CHECK-NEXT:     Binding: Global
-# CHECK-NEXT:     Type:
-# CHECK-NEXT:     Other:
-# CHECK-NEXT:     Section: .text
-# CHECK-NEXT:   }
-# CHECK-NEXT: ]

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-dwo-groups.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-dwo-groups.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-dwo-groups.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-dwo-groups.test (removed)
@@ -1,40 +0,0 @@
-# RUN: cp %p/Inputs/groups.o %t
-# RUN: llvm-objcopy -strip-dwo %t
-# RUN: llvm-readobj -elf-section-groups %t | FileCheck %s
-
-// Source code of groups.o:
-//
-// template <class T>
-// struct S {
-//    static constexpr T X = T(1);
-//    T getX() { return X; }
-// };
-// void f() {
-//  S<int> A;
-//  S<double> B;
-//  int a = A.getX();
-//  int b = B.getX();
-// }
-//
-// clang -g -gsplit-dwarf -std=c++11 -c groups.cpp -o groups.o
-
-// `llvm-objcopy -strip-dwo` strips out dwo sections, as a result, the index of 
-// the symbol table, the indices of the symbols and the indices of the sections 
-// which go after the removed ones will change. Consequently, the fields 
-// Link, Info and the content of .group need to be updated. In the past 
-// `llvm-objcopy -strip-dwo` used to produce invalid binaries with 
-// broken .group section, this test verifies the correctness of 
-// Link, Info and the content of this section.
-
-CHECK:          Name: .group (179)
-CHECK-NEXT:     Index: 17
-CHECK-NEXT:     Link: 19
-CHECK-NEXT:     Info: 14
-CHECK:          .text._ZN1SIiE4getXEv (2)
-
-CHECK:          Name: .group (179)
-CHECK-NEXT:     Index: 18
-CHECK-NEXT:     Link: 19
-CHECK-NEXT:     Info: 13
-CHECK:          .text._ZN1SIdE4getXEv (4)
-CHECK-NEXT:     .rela.text._ZN1SIdE4getXEv (21)

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-dwo-inplace.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-dwo-inplace.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-dwo-inplace.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-dwo-inplace.test (removed)
@@ -1,29 +0,0 @@
-# RUN: cp %p/Inputs/dwarf.dwo %t
-# RUN: llvm-objcopy -strip-dwo %t
-# RUN: llvm-readobj -file-headers -sections %t | FileCheck %s
-
-CHECK:     SectionHeaderCount: 24
-
-CHECK:    Name: .text
-CHECK:    Name: .rodata.str1.1
-CHECK:    Name: .debug_str
-CHECK:    Name: .debug_abbrev
-CHECK:    Name: .debug_info
-CHECK:    Name: .debug_ranges
-CHECK:    Name: .debug_macinfo
-CHECK:    Name: .debug_addr
-CHECK:    Name: .debug_pubnames
-CHECK:    Name: .debug_pubtypes
-CHECK:    Name: .comment
-CHECK:    Name: .note.GNU-stack
-CHECK:    Name: .debug_frame
-CHECK:    Name: .debug_line
-CHECK:    Name: .symtab
-CHECK:    Name: .rela.text
-CHECK:    Name: .rela.debug_info
-CHECK:    Name: .rela.debug_addr
-CHECK:    Name: .rela.debug_pubnames
-CHECK:    Name: .rela.debug_pubtypes
-CHECK:    Name: .rela.debug_frame
-CHECK:    Name: .rela.debug_line
-CHECK:    Name: .strtab

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-group-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-group-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-group-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-group-symbol.test (removed)
@@ -1,31 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s
-
---- !ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            foo
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Weak:
-    - Name:            foo
-      Type:            STT_FUNC
-      Section:         .text
-
-#CHECK: Symbol foo cannot be removed because it is referenced by the section .group[1].

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-multiple-files.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-multiple-files.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-multiple-files.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-multiple-files.test (removed)
@@ -1,75 +0,0 @@
-# RUN: yaml2obj %s > %t.o
-
-# Run llvm-strip normally. This will create a stripped object file for later
-# tests so we only have to run FileCheck on it once.
-# RUN: cp %t.o %t.1.o
-# RUN: llvm-strip --keep-symbol=foo %t.1.o -o %t.stripped.o
-# RUN: llvm-readobj -symbols %t.stripped.o | FileCheck %s
-
-# llvm-strip on two files:
-# RUN: cp %t.o %t.1.o
-# RUN: cp %t.o %t.2.o
-# RUN: llvm-strip --keep-symbol=foo %t.1.o %t.2.o
-# RUN: cmp %t.1.o %t.stripped.o
-# RUN: cmp %t.2.o %t.stripped.o
-
-# llvm-strip on three files:
-# RUN: cp %t.o %t.1.o
-# RUN: cp %t.o %t.2.o
-# RUN: cp %t.o %t.3.o
-# RUN: llvm-strip --keep-symbol=foo %t.1.o %t.2.o %t.3.o
-# RUN: cmp %t.1.o %t.stripped.o
-# RUN: cmp %t.2.o %t.stripped.o
-# RUN: cmp %t.3.o %t.stripped.o
-
-# -o cannot be used with multiple input files
-# RUN: cp %t.o %t.1.o
-# RUN: cp %t.o %t.2.o
-# RUN: not llvm-strip --keep-symbol=foo -o %t.stripped.o %t.1.o %t.2.o 2>&1 \
-# RUN:   | FileCheck %s --check-prefix=BAD-O-FLAG
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1234
-      Size:     8
-    - Name:     bar
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x5678
-      Size:     8
-
-# CHECK:      Symbols [
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name:
-# CHECK-NEXT:     Value: 0x0
-# CHECK-NEXT:     Size: 0
-# CHECK-NEXT:     Binding: Local
-# CHECK-NEXT:     Type: None
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: Undefined
-# CHECK-NEXT:   }
-# CHECK-NEXT:   Symbol {
-# CHECK-NEXT:     Name: foo
-# CHECK-NEXT:     Value: 0x1234
-# CHECK-NEXT:     Size: 8
-# CHECK-NEXT:     Binding: Local
-# CHECK-NEXT:     Type: Function
-# CHECK-NEXT:     Other: 0
-# CHECK-NEXT:     Section: .text
-# CHECK-NEXT:   }
-# CHECK-NEXT: ]
-
-# BAD-O-FLAG: Multiple input files cannot be used in combination with -o.

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-non-alloc.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-non-alloc.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-non-alloc.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-non-alloc.test (removed)
@@ -1,26 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --strip-non-alloc %t %t2
-# RUN: llvm-readobj -file-headers -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .bss
-    Type:            SHT_NOBITS
-    Flags:           [ SHF_ALLOC ]
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-  - Name:            .blarg
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK: SectionHeaderCount: 4
-
-# CHECK: Name: .bss
-# CHECK: Name: .text
-# CHECK: Name: .shstrtab

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test (removed)
@@ -1,78 +0,0 @@
-# Note: ls -lu prints the accessed timestamp, ls -l prints the modified timestamp
-
-# Preserve dates when stripping to an output file.
-# RUN: yaml2obj %s > %t.1.o
-# RUN: touch -a -t 199505050555.55 %t.1.o
-# RUN: touch -m -t 199705050555.55 %t.1.o
-# RUN: llvm-strip -p %t.1.o -o %t-preserved.1.o
-# RUN: ls -lu %t-preserved.1.o | FileCheck %s --check-prefix=CHECK-PRESERVE-ATIME
-# RUN: ls -l %t-preserved.1.o | FileCheck %s --check-prefix=CHECK-PRESERVE-MTIME
-# Check that the stripped output is in fact a valid object file.
-# RUN: llvm-readobj %t-preserved.1.o
-
-# Preserve dates available via objcopy interface as well.
-# RUN: yaml2obj %s > %t.2.o
-# RUN: touch -a -t 199505050555.55 %t.2.o
-# RUN: touch -m -t 199705050555.55 %t.2.o
-# RUN: llvm-objcopy -p %t.2.o %t-preserved.2.o
-# RUN: ls -lu %t-preserved.2.o | FileCheck %s --check-prefix=CHECK-PRESERVE-ATIME
-# RUN: ls -l %t-preserved.2.o | FileCheck %s --check-prefix=CHECK-PRESERVE-MTIME
-# RUN: llvm-readobj %t-preserved.2.o
-
-# Preserve dates when stripping in place.
-# RUN: yaml2obj %s > %t.3.o
-# RUN: touch -a -t 199505050555.55 %t.3.o
-# RUN: touch -m -t 199705050555.55 %t.3.o
-# RUN: llvm-strip -p %t.3.o
-# RUN: ls -lu %t.3.o | FileCheck %s --check-prefix=CHECK-PRESERVE-ATIME
-# RUN: ls -l %t.3.o | FileCheck %s --check-prefix=CHECK-PRESERVE-MTIME
-# RUN: llvm-readobj %t.3.o
-
-# Without -p set, don't preserve dates.
-# RUN: yaml2obj %s > %t.4.o
-# RUN: touch -a -t 199505050555.55 %t.4.o
-# RUN: touch -m -t 199705050555.55 %t.4.o
-# RUN: llvm-strip %t.4.o
-# RUN: ls -lu %t.4.o | FileCheck %s --check-prefix=CHECK-NO-PRESERVE-ATIME
-# RUN: ls -l %t.4.o | FileCheck %s --check-prefix=CHECK-NO-PRESERVE-MTIME
-# RUN: llvm-readobj %t.4.o
-
-# Preserve dates in archives.
-# RUN: yaml2obj %s > %t.5.o
-# RUN: rm -f %t.a
-# RUN: llvm-ar cr %t.a %t.5.o
-# RUN: touch -a -t 199505050555.55 %t.a
-# RUN: touch -m -t 199705050555.55 %t.a
-# RUN: llvm-strip -p %t.a
-# RUN: ls -lu %t.a | FileCheck %s --check-prefix=CHECK-PRESERVE-ATIME
-# RUN: ls -l %t.a | FileCheck %s --check-prefix=CHECK-PRESERVE-MTIME
-# RUN: llvm-readobj %t.a
-
-# Preserve dates in split DWO files.
-# RUN: cp %p/Inputs/dwarf.dwo %t-input.dwo
-# RUN: touch -a -t 199505050555.55 %t-input.dwo
-# RUN: touch -m -t 199705050555.55 %t-input.dwo
-# RUN: llvm-objcopy -p -split-dwo=%t-dwo %t-input.dwo %t-nondwo
-# RUN: ls -lu %t-dwo | FileCheck %s --check-prefix=CHECK-PRESERVE-ATIME
-# RUN: ls -l %t-dwo | FileCheck %s --check-prefix=CHECK-PRESERVE-MTIME
-# RUN: llvm-readobj %t-dwo
-# RUN: ls -lu %t-nondwo | FileCheck %s --check-prefix=CHECK-PRESERVE-ATIME
-# RUN: ls -l %t-nondwo | FileCheck %s --check-prefix=CHECK-PRESERVE-MTIME
-# RUN: llvm-readobj %t-nondwo
-
-# CHECK-PRESERVE-ATIME:        {{[[:space:]]1995}}
-# CHECK-PRESERVE-MTIME:        {{[[:space:]]1997}}
-
-# CHECK-NO-PRESERVE-ATIME-NOT: {{[[:space:]]1995}}
-# CHECK-NO-PRESERVE-MTIME-NOT: {{[[:space:]]1997}}
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-reloc-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-reloc-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-reloc-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-reloc-symbol.test (removed)
@@ -1,32 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .rel.text
-    Type:            SHT_REL
-    Info:            .text
-    Relocations:
-      - Offset: 0x1000
-        Symbol: foo
-        Type:   R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-
-#CHECK: not stripping symbol 'foo' because it is named in a relocation.

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-sections-keep.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-sections-keep.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-sections-keep.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-sections-keep.test (removed)
@@ -1,13 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -strip-sections -keep-section=.shstrtab %t %t2
-# RUN: od -Ax -t c %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-
-# CHECK: \0 . s h s t r t a b \0

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-sections-only-keep.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-sections-only-keep.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-sections-only-keep.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-sections-only-keep.test (removed)
@@ -1,20 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy -strip-sections -only-keep=.test %t %t2
-# RUN: od -Ax -t x1 %t2 | FileCheck %s
-# RUN: od -Ax -t c  %t2 | FileCheck %s -check-prefix=TEXT
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .test
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-    Content:        "DEADBEEF"
-
-# CHECK: de ad be ef
-
-# TEXT-NOT: t e s t

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-sections.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-sections.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-sections.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-sections.test (removed)
@@ -1,66 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --strip-sections %t %t2
-# RUN: llvm-readobj -file-headers -program-headers %t2 | FileCheck %s
-# RUN: od -t x1 -j 4096 %t2 | FileCheck %s --check-prefix=DATA
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x0000000000001000
-    Content:         "DEADBEEF"
-ProgramHeaders:
-- Type: PT_LOAD
-  Flags: [ PF_X, PF_R ]
-  Sections:
-    - Section: .text
-
-#DATA: 0010000 de ad be ef
-
-#CHECK: ElfHeader {
-#CHECK-NEXT:  Ident {
-#CHECK-NEXT:     Magic: (7F 45 4C 46)
-#CHECK-NEXT:     Class: 64-bit (0x2)
-#CHECK-NEXT:     DataEncoding: LittleEndian (0x1)
-#CHECK-NEXT:     FileVersion: 1
-#CHECK-NEXT:     OS/ABI: SystemV (0x0)
-#CHECK-NEXT:     ABIVersion: 0
-#CHECK-NEXT:     Unused: (00 00 00 00 00 00 00)
-#CHECK-NEXT:   }
-#CHECK-NEXT:   Type: Executable (0x2)
-#CHECK-NEXT:   Machine: EM_X86_64 (0x3E)
-#CHECK-NEXT:   Version: 1
-#CHECK-NEXT:   Entry: 0x0
-#CHECK-NEXT:   ProgramHeaderOffset: 0x40
-#CHECK-NEXT:   SectionHeaderOffset: 0x0
-#CHECK-NEXT:   Flags [ (0x0)
-#CHECK-NEXT:   ]
-#CHECK-NEXT:   HeaderSize: 64
-#CHECK-NEXT:   ProgramHeaderEntrySize: 56
-#CHECK-NEXT:   ProgramHeaderCount: 1
-#CHECK-NEXT:   SectionHeaderEntrySize: 0
-#CHECK-NEXT:   SectionHeaderCount: 0
-#CHECK-NEXT:   StringTableSectionIndex: 0
-#CHECK-NEXT: }
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 4
-#CHECK-NEXT:    MemSize: 4
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-symbol.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-symbol.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-symbol.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-symbol.test (removed)
@@ -1,57 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --strip-symbol baz -N bar %t %t2
-# RUN: llvm-readobj -symbols -sections %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-  Weak:
-    - Name:     bar
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1008
-  Global:
-    - Name:     baz
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1010
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: foo
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-unneeded.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-unneeded.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-unneeded.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-unneeded.test (removed)
@@ -1,143 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: cp %t %t1
-# RUN: llvm-objcopy --strip-unneeded %t %t2
-# Verify that llvm-objcopy has not modified the input.
-# RUN: cmp %t %t1
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-# Verify that llvm-strip modifies the symbol table the same way.
-# RUN: llvm-strip --strip-unneeded %t
-# RUN: cmp %t %t2
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .group
-    Type:            SHT_GROUP
-    Link:            .symtab
-    AddressAlign:    0x0000000000000004
-    Info:            barfoo
-    Members:
-      - SectionOrType:   GRP_COMDAT
-      - SectionOrType:   .text
-  - Name:            .rel.text
-    Type:            SHT_REL
-    Link:            .symtab
-    Info:            .text
-    Relocations:
-      - Offset: 0x1000
-        Symbol: foo
-        Type:   R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-    - Name:     bar
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1008
-    - Name:     barfoo
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1010
-    - Name:     fileSymbol
-      Type:     STT_FILE
-    - Name:     sectionSymbol
-      Type:     STT_SECTION
-  Weak:
-    - Name:     baz
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1018
-    - Name:     foobaz
-      Type:     STT_FUNC
-  Global:
-    - Name:     foobar
-      Type:     STT_FUNC
-    - Name:     barbaz
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1020
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: foo
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: barfoo
-#CHECK-NEXT:    Value: 0x1010
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: fileSymbol
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: File
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: sectionSymbol
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Section
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: barbaz
-#CHECK-NEXT:    Value: 0x1020
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: baz
-#CHECK-NEXT:    Value: 0x1018
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Weak
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/strip-version.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/strip-version.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/strip-version.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/strip-version.test (removed)
@@ -1,6 +0,0 @@
-# RUN: llvm-strip -version | FileCheck %s
-# RUN: llvm-strip --version | FileCheck %s
-# RUN: llvm-strip -V | FileCheck %s
-
-# CHECK-DAG: {{ version }}
-# CHECK-DAG: GNU strip

Removed: llvm/trunk/test/tools/llvm-objcopy/symbol-copy.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/symbol-copy.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/symbol-copy.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/symbol-copy.test (removed)
@@ -1,126 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-  - Name:            .data
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC ]
-    Address:         0x2000
-    AddressAlign:    0x0000000000000010
-    Content:         "0000000000000000"
-Symbols:
-  Global:
-    - Name:     _start
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     4
-    - Name:     bam
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1001
-      Size:     4
-      Visibility: STV_HIDDEN
-    - Name:     foo
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1004
-    - Name:     faz
-      Type:     STT_OBJECT
-      Section:  .data
-      Value:    0x2002
-      Size:     2
-      Visibility: STV_INTERNAL
-    - Name:     bar
-      Type:     STT_OBJECT
-      Section:  .data
-      Value:    0x2000
-      Size:     4
-    - Name:     baz
-      Type:     STT_OBJECT
-      Section:  .data
-      Value:    0x2004
-      Size:     4
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: _start
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 4
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: bam
-#CHECK-NEXT:    Value: 0x1001
-#CHECK-NEXT:    Size: 4
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other [
-#CHECK-NEXT:      STV_HIDDEN
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: foo
-#CHECK-NEXT:    Value: 0x1004
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: faz
-#CHECK-NEXT:    Value: 0x2002
-#CHECK-NEXT:    Size: 2
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other [
-#CHECK-NEXT:      STV_INTERNAL
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Section: .data
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: bar
-#CHECK-NEXT:    Value: 0x2000
-#CHECK-NEXT:    Size: 4
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .data
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: baz
-#CHECK-NEXT:    Value: 0x2004
-#CHECK-NEXT:    Size: 4
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Object
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .data
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/symtab-error-on-remove-strtab.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/symtab-error-on-remove-strtab.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/symtab-error-on-remove-strtab.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/symtab-error-on-remove-strtab.test (removed)
@@ -1,11 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: not llvm-objcopy -R .strtab %t %t2 2>&1 >/dev/null | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-
-# CHECK: String table .strtab cannot be removed because it is referenced by the symbol table .symtab

Removed: llvm/trunk/test/tools/llvm-objcopy/symtab-link.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/symtab-link.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/symtab-link.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/symtab-link.test (removed)
@@ -1,27 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj -sections %t2 | FileCheck %s
-# RUN: cp %t %t3
-# RUN: llvm-strip --strip-debug %t3
-# RUN: llvm-readobj -sections %t3 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .foo
-    Link:            .symtab
-    Type:            SHT_PROGBITS
-    Flags:           [ ]
-
-# CHECK:      Name: .foo
-# CHECK-NEXT: Type:
-# CHECK-NEXT: Flags [ (0x0)
-# CHECK-NEXT: ]
-# CHECK-NEXT: Address:
-# CHECK-NEXT: Offset:
-# CHECK-NEXT: Size:
-# CHECK-NEXT: Link: 0

Removed: llvm/trunk/test/tools/llvm-objcopy/triple-overlap.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/triple-overlap.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/triple-overlap.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/triple-overlap.test (removed)
@@ -1,123 +0,0 @@
-# This test tests that each segment is assigned a canonical parent segment.
-# Importantly if two segments could be the parent segment of a segment this test
-# should cover the case where a new parent replaces the old parent and the case
-# where an old parent is not replaced by a new parent.
-
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy %t %t2
-# RUN: llvm-readobj --program-headers %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text4
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-  - Name:            .text5
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    AddressAlign:    0x1000
-    Size:            4096
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text4
-      - Section: .text5
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text3
-      - Section: .text4
-      - Section: .text5
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text
-      - Section: .text2
-      - Section: .text3
-      - Section: .text4
-      - Section: .text5
-  - Type: PT_LOAD
-    Flags: [ PF_X, PF_R ]
-    Sections:
-      - Section: .text2
-      - Section: .text3
-      - Section: .text4
-      - Section: .text5
-
-#CHECK:     ProgramHeaders [
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x4000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 8192
-#CHECK-NEXT:    MemSize: 8192
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x3000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 12288
-#CHECK-NEXT:    MemSize: 12288
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x1000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 20480
-#CHECK-NEXT:    MemSize: 20480
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:  ProgramHeader {
-#CHECK-NEXT:    Type: PT_LOAD (0x1)
-#CHECK-NEXT:    Offset: 0x2000
-#CHECK-NEXT:    VirtualAddress: 0x0
-#CHECK-NEXT:    PhysicalAddress: 0x0
-#CHECK-NEXT:    FileSize: 16384
-#CHECK-NEXT:    MemSize: 16384
-#CHECK-NEXT:    Flags [ (0x5)
-#CHECK-NEXT:      PF_R (0x4)
-#CHECK-NEXT:      PF_X (0x1)
-#CHECK-NEXT:    ]
-#CHECK-NEXT:    Alignment: 4096
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-end.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-end.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-end.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-end.test (removed)
@@ -1,61 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .text4 -O binary %t %t2
-# RUN: od -Ax -v -t x1 %t2 | FileCheck %s
-# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Content:         "c3c3c3c3"
-    Size:            0x1000
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Content:         "DEADBEEF"
-    Size:            0x1000
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Content:         "32323232"
-    Size:            0x1000
-  - Name:            .text4
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x4000
-    AddressAlign:    0x1000
-    Content:         "FFFFFFFF"
-    Size:            0x1000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .text
-      - Section: .text2
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x3000
-    PAddr: 0x3000
-    Sections:
-      - Section: .text3
-      - Section: .text4
-
-# CHECK: 000000 c3 c3 c3 c3
-# CHECK: 001000 de ad be ef
-# CHECK: 002000 32 32 32 32
-
-# SIZE: 12288

Removed: llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-first.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-first.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-first.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-first.test (removed)
@@ -1,61 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .text -O binary %t %t2
-# RUN: od -Ax -v -t x1 %t2 | FileCheck %s
-# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Content:         "c3c3c3c3"
-    Size:            0x1000
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Content:         "DEADBEEF"
-    Size:            0x1000
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Content:         "32323232"
-    Size:            0x1000
-  - Name:            .text4
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x4000
-    AddressAlign:    0x1000
-    Content:         "FFFFFFFF"
-    Size:            0x1000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .text
-      - Section: .text2
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x3000
-    PAddr: 0x3000
-    Sections:
-      - Section: .text3
-      - Section: .text4
-
-# CHECK: 000000 de ad be ef
-# CHECK: 001000 32 32 32 32
-# CHECK: 002000 ff ff ff ff
-
-# SIZE: 12288

Removed: llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-third-sec.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-third-sec.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-third-sec.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/two-seg-remove-third-sec.test (removed)
@@ -1,62 +0,0 @@
-# RUN: yaml2obj %s -o %t
-# RUN: llvm-objcopy -R .text3 -O binary %t %t2
-# RUN: od -Ax -v -t x1 %t2 | FileCheck %s
-# RUN: wc -c %t2 | FileCheck %s -check-prefix=SIZE
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_EXEC
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x1000
-    Content:         "c3c3c3c3"
-    Size:            0x1000
-  - Name:            .text2
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x2000
-    AddressAlign:    0x1000
-    Content:         "DEADBEEF"
-    Size:            0x1000
-  - Name:            .text3
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x3000
-    AddressAlign:    0x1000
-    Content:         "32323232"
-    Size:            0x1000
-  - Name:            .text4
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x4000
-    AddressAlign:    0x1000
-    Content:         "FFFFFFFF"
-    Size:            0x1000
-ProgramHeaders:
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x1000
-    PAddr: 0x1000
-    Sections:
-      - Section: .text
-      - Section: .text2
-  - Type: PT_LOAD
-    Flags: [ PF_R ]
-    VAddr: 0x3000
-    PAddr: 0x3000
-    Sections:
-      - Section: .text3
-      - Section: .text4
-
-# CHECK: 000000 c3 c3 c3 c3
-# CHECK: 001000 de ad be ef
-# CHECK: 002000 00 00 00 00
-# CHECK: 003000 ff ff ff ff
-
-# SIZE: 16384

Removed: llvm/trunk/test/tools/llvm-objcopy/weaken-all.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/weaken-all.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/weaken-all.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/weaken-all.test (removed)
@@ -1,94 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --weaken %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-  - Name:            .rel.text
-    Type:            SHT_REL
-    Info:            .text
-    Relocations:
-      - Offset: 0x1000
-        Symbol: undefGlobal
-        Type:   R_X86_64_PC32
-Symbols:
-  Local:
-    - Name:     Local
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1008
-      Size:     8
-  Weak:
-    - Name:     Weak
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1010
-  Global:
-    - Name:     Global
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1018
-    - Name:     undefGlobal
-      Type:     STT_FUNC
-      Size:     8
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Local
-#CHECK-NEXT:    Value: 0x1008
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Global
-#CHECK-NEXT:    Value: 0x1018
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Weak
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: undefGlobal
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Global
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section:
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Weak
-#CHECK-NEXT:    Value: 0x1010
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Weak
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:]

Removed: llvm/trunk/test/tools/llvm-objcopy/weaken.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/weaken.test?rev=347957&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/weaken.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/weaken.test (removed)
@@ -1,75 +0,0 @@
-# RUN: yaml2obj %s > %t
-# RUN: llvm-objcopy --weaken-symbol Global -W Local -W Weak %t %t2
-# RUN: llvm-readobj -symbols %t2 | FileCheck %s
-
-!ELF
-FileHeader:
-  Class:           ELFCLASS64
-  Data:            ELFDATA2LSB
-  Type:            ET_REL
-  Machine:         EM_X86_64
-Sections:
-  - Name:            .text
-    Type:            SHT_PROGBITS
-    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
-    Address:         0x1000
-    AddressAlign:    0x0000000000000010
-    Size:            64
-Symbols:
-  Local:
-    - Name:     Local
-      Type:     STT_FUNC
-      Section:  .text
-      Value:    0x1000
-      Size:     8
-  Weak:
-    - Name:     Weak
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1008
-  Global:
-    - Name:     Global
-      Type:     STT_FUNC
-      Size:     8
-      Section:  .text
-      Value:    0x1010
-
-#CHECK: Symbols [
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name:
-#CHECK-NEXT:    Value: 0x0
-#CHECK-NEXT:    Size: 0
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: None
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: Undefined
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Local
-#CHECK-NEXT:    Value: 0x1000
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Local
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Global
-#CHECK-NEXT:    Value: 0x1010
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Weak
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:  Symbol {
-#CHECK-NEXT:    Name: Weak
-#CHECK-NEXT:    Value: 0x1008
-#CHECK-NEXT:    Size: 8
-#CHECK-NEXT:    Binding: Weak
-#CHECK-NEXT:    Type: Function
-#CHECK-NEXT:    Other: 0
-#CHECK-NEXT:    Section: .text
-#CHECK-NEXT:  }
-#CHECK-NEXT:]




More information about the llvm-commits mailing list