1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test/tools/llvm-objcopy/ELF
Fangrui Song 61e55d5d11 [llvm-objcopy][COFF] Implement --redefine-sym and --redefine-syms
The parsing error tests in ELF/redefine-symbols.test are not specific to ELF.
Move them to redefine-symbols.test.
Add COFF/redefine-symbols.test for COFF specific tests.

Also fix the documentation regarding --redefine-syms: the old and new
names are separated by whitespace, not an equals sign.

Reviewed By: mstorsjo

Differential Revision: https://reviews.llvm.org/D70036
2019-11-12 11:28:00 -08:00
..
Inputs [llvm-objcopy] - Stop using Inputs/alloc-symtab.o 2019-07-30 13:37:02 +00:00
abs-symbol.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
add-gnu-debuglink.test
add-note.test
add-section-remove.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
add-section-special.test
add-section.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
add-symbol-new-symbol-visibility.test [llvm-objcopy] Allow the visibility of symbols created by --binary and 2019-08-30 10:17:16 +00:00
add-symbol-no-symtab.test [llvm-objcopy] --add-symbol: address post-commit reviews of D69093 2019-10-31 09:12:06 -07:00
add-symbol.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
adjacent-segments.test
archive-unknown-members.test [llvm-ar] Reapply Fix relative thin archive path handling 2019-06-04 10:13:03 +00:00
armexidx-link.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
auto-remove-shndx.test
bad-build-id.test [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
bad-output-format.test [llvm-objcopy] Changed command line parsing errors 2019-06-14 02:04:02 +00:00
basic-archive-copy.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
basic-binary-copy.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
basic-copy.test
basic-keep.test
basic-only-section.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
basic-relocations.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
binary-first-seg-offset-zero.test
binary-input-and-output.test [llvm-objcopy] Default --output-target to --input-target when unspecified 2019-09-14 01:36:16 +00:00
binary-input-error.test [llvm-objcopy] Ignore -B --binary-architecture= 2019-09-14 01:36:31 +00:00
binary-input.test [llvm-objcopy] Add --set-section-alignment 2019-10-02 12:41:25 +00:00
binary-no-paddr.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
binary-out-error.test [llvm-objcopy] - Stop using Inputs/alloc-symtab.o 2019-07-30 13:37:02 +00:00
binary-output-empty.test
binary-output-target.test [llvm-objcopy][test] Clean up -B tests 2019-09-25 03:41:01 +00:00
binary-paddr.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
binary-remove-all-but-one.test
binary-remove-end.test
binary-remove-middle.test
binary-segment-layout.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
build-id-link-dir.test
cannot-delete-dest.test
change-entry-point.test
check-addr-offset-align-binary.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
check-addr-offset-align.test
common-symbol.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
compress-and-decompress-debug-sections-error.test [llvm-objcopy] Changed command line parsing errors 2019-06-14 02:04:02 +00:00
compress-debug-sections-default-gnu.test
compress-debug-sections-default.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
compress-debug-sections-groups.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
compress-debug-sections-invalid-format.test [llvm-objcopy] Changed command line parsing errors 2019-06-14 02:04:02 +00:00
compress-debug-sections-symbols.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
compress-debug-sections-zlib-gnu.test [llvm-objcopy] Fix SHT_GROUP ordering. 2019-06-10 18:35:01 +00:00
compress-debug-sections-zlib-header.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
compress-debug-sections-zlib.test [llvm-objcopy] Fix SHT_GROUP ordering. 2019-06-10 18:35:01 +00:00
compress-debug-sections.test
copy-after-strip-sections.test
copy-osabi.test
cross-arch-headers.test [llvm-objcopy] Add elf32-sparc and elf32-sparcel target 2019-06-17 02:03:45 +00:00
cross-arch-sections-symbols.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
deterministic-archive.test
discard-all-debug.test Let --discard-all imply --strip-debug. 2019-05-03 14:14:01 +00:00
discard-all.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
discard-locals-rel.test [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
discard-locals.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
discard-mix-local-and-all.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
drawf-fission.test
dump-section.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
dynamic-relocations.test [llvm-objcopy] - Get rid of dynrel.elf precompiled binary from inputs. 2019-06-21 14:15:15 +00:00
dynamic.test
dynrelocsec-remove-shinfo-reference.test [llvm-objcopy] - Check dynamic relocation sections for broken references. 2019-04-30 11:02:09 +00:00
dynrelocsec-remove-shlink-reference.test [llvm-objcopy] Add file names to error messages 2019-05-23 00:42:46 +00:00
dynstr.test
dynsym-error-remove-strtab.test [llvm-objcopy] Add file names to error messages 2019-05-23 00:42:46 +00:00
dynsym.test
elf32be.test
elf32le.test
elf64be.test
empty-section.test
error-format.test [llvm-objcopy][test] Add a test to show that argv[0] is included in error/warning messages 2019-08-20 15:34:07 +00:00
explicit-keep-remove.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
explicit-only-section-remove.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
fail-no-output-directory.test
globalize.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
group-addr-misaligned.test [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
group-big-endian.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
group-reorder.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
group-unchanged.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
group.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
help-message.test [llvm-objcopy] Add support for response files in llvm-strip and llvm-objcopy 2019-09-14 01:14:43 +00:00
hexagon-unsupported-on-x86.test [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
identical-segments.test
ihex-reader.test [llvm-objcopy][IHEX] Improve test case formatting. NFC 2019-06-14 08:09:10 +00:00
ihex-writer.test [llvm-objcopy] Remove %p format specifiers 2019-05-30 09:09:01 +00:00
input-output-target.test [llvm-objcopy][test] Clean up -B tests 2019-09-25 03:41:01 +00:00
invalid-e_phoff.test [Object/ELF.h] - Improve error reporting. 2019-07-05 11:28:49 +00:00
invalid-e_shoff.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
invalid-p_filesz-p_offset.test [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
invalid-preserve-dates.test [llvm-objcopy] - Stop using Inputs/alloc-symtab.o 2019-07-30 13:37:02 +00:00
keep-file-symbols.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
keep-global-symbols-mix-globalize.test [llvm-readobj] llvm-readobj --elf-output-style=GNU => llvm-readelf. NFC 2019-05-01 05:55:22 +00:00
keep-global-symbols.test [llvm-readobj] llvm-readobj --elf-output-style=GNU => llvm-readelf. NFC 2019-05-01 05:55:22 +00:00
keep-many.test
keep-only-section.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
keep-symbol-remove-section.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
keep-symbol.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
linked-section.test [llvm-objcopy] Add additional testing for various cases 2019-05-10 12:58:52 +00:00
localize-hidden.test [yaml2obj][obj2yaml] - Use a single "Other" field instead of "Other", "Visibility" and "StOther". 2019-08-30 13:39:22 +00:00
localize.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
many-sections.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
marker-segment.test [yaml2obj] Support PT_GNU_STACK and PT_GNU_RELRO 2019-09-04 09:19:31 +00:00
mirror-permissions-unix.test llvm-objcopy/test: add REQUIRES: shell for use of umask 2019-07-22 22:23:52 +00:00
mirror-permissions-win.test [llvm-objcopy] Change handling of output file permissions 2019-07-04 22:45:27 +00:00
new-symbol-visibility.test [llvm-objcopy] Default --output-target to --input-target when unspecified 2019-09-14 01:36:16 +00:00
no-build-id-no-notes.test [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
no-build-id.test [llvm-objcopy] Add file names to error messages 2019-05-23 00:42:46 +00:00
no-strip-all.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
no-symbol-relocation.test [llvm-objcopy] - Do not crash on object that has relocations but no symbol table. 2019-10-30 13:17:22 +03:00
null-symbol.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
objcopy-version.test [llvm-objcopy] Accept --long-option but not -long-option 2019-04-26 02:10:10 +00:00
only-keep-debug.test [llvm-objcopy][ELF] Implement --only-keep-debug 2019-11-05 08:56:15 -08:00
only-section-many.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
only-section-remove-strtab.test
only-section-strip-non-alloc.test
only-section-strip-undefined.test [llvm-objcopy] - Strip undefined symbols if they are no longer referenced following --only-section 2019-05-24 15:04:50 +00:00
overlap-chain.test
overlapping-sections-in-segments.test [llvm-objcopy] - Remove python invocations from 2 test cases. 2019-09-17 08:38:53 +00:00
overlapping-sections.test [llvm-objcopy] - Remove python invocations from 2 test cases. 2019-09-17 08:38:53 +00:00
parent-loop-check.test
partitions.test llvm-objcopy: Implement --extract-partition and --extract-main-partition. 2019-06-07 17:57:48 +00:00
prefix-alloc-sections-dynrelocsec.test [llvm-objcopy] - Get rid of dynrel.elf precompiled binary from inputs. 2019-06-21 14:15:15 +00:00
prefix-alloc-sections.test [llvm-objcopy] Add --prefix-alloc-sections 2019-05-08 09:49:35 +00:00
prefix-symbols.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
preserve-segment-contents-ehdr-phdrs.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
preserve-segment-contents.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
program-headers.test
pt-phdr.test
redefine-symbol.test [llvm-objcopy][COFF] Implement --redefine-sym and --redefine-syms 2019-11-12 11:28:00 -08:00
regex.test [llvm-objcopy] [llvm-symbolizer] Fix failing tests 2019-04-04 17:35:41 +00:00
reloc-error-remove-symtab.test [llvm-objcopy] Add file names to error messages 2019-05-23 00:42:46 +00:00
reloc-no-symtab.test
relocatable-phdr.test
relocations-no-symtab.test [llvm-objcopy] - Do not crash on object that has relocations but no symbol table. 2019-10-30 13:17:22 +03:00
remove-linked-section.test [llvm-objcopy] Add file names to error messages 2019-05-23 00:42:46 +00:00
remove-multiple-sections.test [llvm-objcopy] Allow strip symtab in executables and DSOs 2019-07-23 08:03:30 +00:00
remove-section-in-segment.test
remove-section-with-symbol.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
remove-section.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
remove-shndx.test
remove-shstrtab-error.test [llvm-objcopy] Add file names to error messages 2019-05-23 00:42:46 +00:00
remove-symtab.test
rename-section-and-prefix-alloc-sections.test [llvm-objcopy] Add --prefix-alloc-sections 2019-05-08 09:49:35 +00:00
rename-section-duplicate-names.test [llvm-objcopy] Add additional testing for various cases 2019-05-10 12:58:52 +00:00
rename-section-empty-string.test [llvm-objcopy] Add additional testing for various cases 2019-05-10 12:58:52 +00:00
rename-section-flag-osproc-mask.test
rename-section-flag-preserved.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
rename-section-flag.test [llvm-objcopy] Changed command line parsing errors 2019-06-14 02:04:02 +00:00
rename-section-multiple.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
rename-section.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
respect-umask.test llvm-objcopy/test: add REQUIRES: shell for use of umask 2019-07-22 22:23:52 +00:00
response-file.test [llvm-objcopy] Add support for response files in llvm-strip and llvm-objcopy 2019-09-14 01:14:43 +00:00
same-file-strip.test [llvm-objcopy] Append '\n' to warning messages 2019-08-20 15:00:07 +00:00
section-index-unsupported.test [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
sectionless-segment.test
segment-shift-section-remove.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
segment-shift.test
segment-test-remove-section.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
set-section-alignment.test [yaml2obj, obj2yaml] - Add support for SHT_NOTE sections. 2019-10-25 13:25:56 +03:00
set-section-flags-and-rename.test
set-section-flags-multiple.test
set-section-flags.test [llvm-objcopy] Changed command line parsing errors 2019-06-14 02:04:02 +00:00
shared-strtab-shstrtab.s [llvm-objcopy] Add additional testing for various cases 2019-05-10 12:58:52 +00:00
shstrtab-optimize.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
standard-streams.test [llvm-objcopy] - Stop using Inputs/alloc-symtab.o 2019-07-30 13:37:02 +00:00
strict-no-add.test [llvm-objcopy] - Stop using Inputs/alloc-symtab.o 2019-07-30 13:37:02 +00:00
strip-all-and-keep-symbol.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
strip-all-and-remove.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
strip-all-gnu.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
strip-all.test [llvm-objcopy] Accept --long-option but not -long-option 2019-04-26 02:10:10 +00:00
strip-debug-and-remove.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
strip-debug.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
strip-dwo-groups.test [llvm-objcopy] - Fix the strip-dwo-groups.test. 2019-08-02 18:22:46 +00:00
strip-dwo-inplace.test
strip-group-symbol.test [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
strip-multiple-files.test [llvm-objcopy] Changed command line parsing errors 2019-06-14 02:04:02 +00:00
strip-non-alloc.test
strip-preserve-arm-attributes.test [llvm-objcopy] Preserve .ARM.attributes section when stripping files 2019-10-31 11:57:19 +00:00
strip-preserve-atime.test
strip-preserve-mtime.test
strip-reloc-symbol.test [llvm-objcopy] Tidy up error messages 2019-05-22 13:23:26 +00:00
strip-section-err.test [llvm-objcopy] Add file names to error messages 2019-05-23 00:42:46 +00:00
strip-sections-keep.test
strip-sections-only-section.test
strip-sections.test [Tests] Output of od can be lower or upper case (llvm-objcopy/yaml2obj). 2019-10-11 12:50:57 +00:00
strip-symbol-and-relocation.test [llvm-objcopy] Add file names to error messages 2019-05-23 00:42:46 +00:00
strip-symbol.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
strip-unneeded-all-symbols.test [llvm-objcopy] Allow strip symtab in executables and DSOs 2019-07-23 08:03:30 +00:00
strip-unneeded-remove-debug-keep-link.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
strip-unneeded.test [llvm-objcopy] Strip file symbols with --strip-unneeded 2019-05-21 09:09:33 +00:00
strip-version.test [llvm-objcopy] Accept --long-option but not -long-option 2019-04-26 02:10:10 +00:00
strtab-optimize.test
symbol-copy.test [yaml2obj][obj2yaml] - Use a single "Other" field instead of "Other", "Visibility" and "StOther". 2019-08-30 13:39:22 +00:00
symbol-empty-name.test [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
symtab-error-on-remove-strtab.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
symtab-link.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00
tail-merged-string-tables.test [llvm-objcopy] Add additional testing for various cases 2019-05-10 12:58:52 +00:00
triple-overlap.test
two-seg-remove-end.test
two-seg-remove-first.test
two-seg-remove-third-sec.test
weaken-all.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
weaken.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
wildcard-flags.test [llvm-objcopy] Add support for shell wildcards 2019-10-17 20:51:00 +00:00
wildcard-syntax.test [yaml2obj][obj2yaml] - Do not create a symbol table by default. 2019-10-20 14:47:17 +00:00