llvm-project/llvm/test/Object
George Rimar 72f821d3de [llvm-readelf] - Rework how we parse the .dynamic section.
This is a result of what I found during my work on https://bugs.llvm.org/show_bug.cgi?id=41679.

Previously LLVM readelf took the information about .dynamic section
from its PT_DYNAMIC segment only. GNU tools have a bit different logic.
They also use the information from the .dynamic section header if it is available.
This patch changes the code to improve the compatibility with the GNU Binutils.

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

llvm-svn: 361165
2019-05-20 15:41:48 +00:00
..
AArch64 AArch64: support binutils-like things on arm64_32. 2019-05-14 11:25:44 +00:00
AMDGPU [AMDGPU] gfx1010 tests. NFC. 2019-05-13 19:30:06 +00:00
ARM [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
Inputs [llvm-readelf] - Rework how we parse the .dynamic section. 2019-05-20 15:41:48 +00:00
Lanai [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
Mips [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
RISCV [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
X86 [ELF] Implement Dependent Libraries Feature 2019-05-17 03:44:15 +00:00
ar-create.test [libObject] Tweak expected error output from llvm-ar 2019-01-15 22:03:08 +00:00
ar-error.test [libObject] Tweak expected error output from llvm-ar 2019-01-15 22:03:08 +00:00
archive-darwin-duplicates.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
archive-delete.test Remove uses of "%T" from test/Object/archive-* tests. 2017-08-20 18:18:44 +00:00
archive-error-tmp.txt
archive-extract-dir.test
archive-extract.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
archive-format.test [Object] Deduplicate long archive member names 2018-12-19 16:15:05 +00:00
archive-long-filenames-no-null-terminator.test Add a test for r331746. 2018-05-09 08:20:14 +00:00
archive-long-index.test
archive-move.test Remove uses of "%T" from test/Object/archive-* tests. 2017-08-20 18:18:44 +00:00
archive-pad.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
archive-replace-pos.test
archive-symtab.test llvm-ar: Darwin archive format fixes. 2018-10-10 21:07:02 +00:00
archive-thin-create.test
archive-thin-paths.test Remove uses of "%T" from test/Object/archive-* tests. 2017-08-20 18:18:44 +00:00
archive-thin-read.test
archive-toc.test [llvm-ar] Use POSIX-specified timestamps for 'tv'. 2018-10-05 23:25:39 +00:00
archive-update.test Fix archive-update.test after r311296. 2017-08-20 18:31:30 +00:00
check_binary_output.ll
coff-archive-short.test
coff-archive.test
coff-empty-drectve.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
coff-invalid.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
coff-weak-externals.test
corrupt.test [llvm-readelf] - Rework how we parse the .dynamic section. 2019-05-20 15:41:48 +00:00
directory.ll [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
dllimport-globalref.ll
dllimport.ll
dyn-rel-relocation.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
dynamic-reloc.test
elf-invalid-phdr.test [llvm-objdump] errorToErrorCode+message -> toString 2019-04-25 04:31:26 +00:00
elf-reloc-no-sym.test
elf-unknown-type.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
invalid-alignment.test Allow unaligned access to ELF file data structures. 2018-01-12 22:09:19 +00:00
invalid.test [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
kext.test
lit.local.cfg
macho-invalid.test [Object] Fix macho-invalid.test 2019-05-10 10:47:30 +00:00
mangle-ir.ll Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1) 2018-01-19 17:13:12 +00:00
mri-addlib.test
mri-addmod.test
mri-crlf.test
mri1.test
mri2.test
mri3.test
mri4.test
mri5.test
multi-module.ll
nm-archive.test Convert two uses of ErrorOr to Expected. 2017-10-10 20:00:07 +00:00
nm-bitcode.test [Object] Fix reading objects created with -fembed-bitcode-marker 2019-03-21 21:01:31 +00:00
nm-darwin-m.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
nm-error.test
nm-irix6.test
nm-pe-image.test
nm-shared-object.test [llvm-nm] Write "no symbol" output to stderr 2018-10-05 21:10:03 +00:00
nm-trivial-object.test [llvm-nm] Report '.comment' ELF sections as 'n' instead of '?' 2019-02-01 17:38:08 +00:00
nm-universal-binary.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
nm-weak-global-macho.test
no-section-header-string-table.test
no-section-table.test [llvm-readobj] - Teach readobj to print DT_FILTER dynamic tag in human readable form. 2017-07-14 16:00:16 +00:00
obj2yaml-coff-long-file-symbol.test
obj2yaml-coff-long-section-name.test
obj2yaml-coff-section-aux-symbol.test
obj2yaml-coff-weak-external.test
obj2yaml-invalid-reloc.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
obj2yaml-sectiongroup.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
obj2yaml.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
objc-imageinfo-coff.ll test: fix hexagon build 2017-06-05 21:45:25 +00:00
objc-imageinfo-elf.ll test: fix hexagon build 2017-06-05 21:45:25 +00:00
objc-imageinfo-macho.ll test: fix hexagon build 2017-06-05 21:45:25 +00:00
objdump-export-list.test [llvm-objdump] Simplify PrintHelpMessage() logic 2019-04-16 02:37:29 +00:00
objdump-file-header.test
objdump-no-sectionheaders.test [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
objdump-private-headers.test
objdump-reloc-shared.test
objdump-relocations.test [llvm-objdump] - Print relocation record in a GNU format. 2019-05-07 13:14:18 +00:00
objdump-section-content.test
objdump-sectionheaders.test [llvm-objdump] - Print LMAs when dumping section headers. 2019-01-28 14:11:35 +00:00
objdump-shndx.test [llvm-objdump] - Print relocation record in a GNU format. 2019-05-07 13:14:18 +00:00
objdump-symbol-table.test [llvm][test] Update tests using objdump 2018-11-11 18:40:33 +00:00
pr25877.test
readobj-absent.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
readobj-elf-versioning.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
readobj-shared-object.test [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
readobj.test
relocation-executable.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
simple-archive.test
size-trivial-macho.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
stackmap-dump.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
wasm-bad-metadata-version.yaml [WebAssembly] Store section alignment as a power of 2 2019-01-16 01:34:48 +00:00
wasm-duplicate-name.test [WebAssembly] Don't allow functions to be named twice 2018-01-12 02:11:31 +00:00
wasm-invalid-file.yaml [WebAssembly] Object: Improve error messages on invalid section 2019-04-20 00:11:46 +00:00
wasm-invalid-section-order.test [WebAssembly] Check if the section order is correct 2018-12-15 00:58:12 +00:00
wasm-invalid-start.test
wasm-missing-version.test [WebAssembly] Fix overflow for input with missing version 2017-08-23 21:36:04 +00:00
wasm-relocs-and-producers.yaml [WebAssembly] Generalize section ordering constraints 2019-02-20 02:22:36 +00:00
wasm-string-outside-section.test [WASM] Fix overflow when reading custom section 2018-08-08 16:34:03 +00:00
yaml2obj-coff-invalid-alignment.test
yaml2obj-coff-multi-doc.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-alignment.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-bits-endian.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-file-headers-with-e_flags.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-file-headers.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-multi-doc.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-rel-noref.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-rel.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-section-basic.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-section-invalid-size.yaml
yaml2obj-elf-symbol-LocalGlobalWeak.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-symbol-basic.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-symbol-visibility.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-invalid.yaml [yaml2obj] - Don't crash on one more invalid document. 2017-09-21 08:25:59 +00:00
yaml2obj-readobj.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00