llvm-project/llvm/test/Object
Ramesh Peri 976bd23612 [llvm-ar] Fix for handling thin archive with SYM64 and a test case for it
WHen thin archives are created which have symbol table of type SYM64 then all the tools will not work since they cannot read the files properly.
One can reproduce the problem as follows:
1. Take a hello world program and create an archive out of it. The SYM64_THRESHOLD=0 will force the generation of SYM64 symbol table.
    clang -c hello.cpp
    SYM64_THRESHOLD=0 llvm-ar crsT mylib.a hello.o
2. Now try to use any of the tools on this mylib.a and it will fail.
    llvm-nm -M mylib.a

THis fix will eliminate these failures. A regression test is created in llvm/test/Object/archive-symtab.test

Reviewed By: MaskRay, Ramesh

Differential Revision: https://reviews.llvm.org/D107322
2021-08-05 10:06:34 -07:00
..
AArch64 Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930). 2020-11-18 13:08:46 +03:00
AMDGPU [test] Move AMDGPU reloc test from Object to tools/llvm-readobj and simplify it 2021-07-12 10:04:32 -07:00
ARM
BPF [llvm-readobj] Display multiple function names for stack size entries 2021-07-26 14:49:53 +01:00
Inputs [TextAPI] Add support for arm64_32 2021-04-01 17:19:12 -07:00
Lanai [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
Mips Reland "[lib/Support/YAMLTraits] - Don't print leading zeroes when dumping Hex8/Hex16/Hex32 types." (https://reviews.llvm.org/D90930). 2020-11-18 13:08:46 +03:00
RISCV
X86 [llvm-nm][test] Avoid deprecated alias -M (--print-armap) 2021-08-04 14:25:24 -07:00
ar-create.test
ar-error.test
archive-darwin-duplicates.test
archive-delete.test
archive-error-tmp.txt
archive-extract-dir.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
archive-extract.test [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
archive-format.test
archive-long-filenames-no-null-terminator.test
archive-long-index.test [llvm-nm][test] Avoid deprecated alias -M (--print-armap) 2021-08-04 14:25:24 -07:00
archive-malformed-object.test
archive-move.test
archive-pad.test
archive-replace-pos.test
archive-symtab.test [llvm-ar] Fix for handling thin archive with SYM64 and a test case for it 2021-08-05 10:06:34 -07:00
archive-thin-create.test
archive-thin-paths.test
archive-thin-read.test
archive-toc.test
archive-unknown-filetype.test
archive-update.test
check_binary_output.ll
coff-archive-short.test
coff-archive.test
coff-empty-drectve.test
coff-invalid.test
coff-weak-externals.test
directory.ll [test] Use host platform specific error message substitution in lit tests 2021-01-29 07:16:30 -05:00
dllimport-globalref.ll
dllimport.ll
dyn-rel-relocation.test [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
dynamic-reloc.test
invalid-alignment.test
invalid.test [llvm-readobj] Switch command line parsing from llvm::cl to OptTable 2021-07-12 10:14:42 -07:00
kext.test
macho-invalid.test [llvm-nm] Tidy up error messages 2021-02-15 13:54:08 +00:00
mangle-ir.ll
multi-module.ll
multiple-sections.yaml [LLD][LLVM] CG Graph profile using relocations 2021-06-24 09:09:33 -07:00
nm-archive.test [llvm-nm][test] Avoid deprecated alias -M (--print-armap) 2021-08-04 14:25:24 -07:00
nm-bitcode.test
nm-darwin-m.test
nm-error.test
nm-irix6.test
nm-pe-image.test
nm-shared-object.test [llvm-nm] Tidy up error messages 2021-02-15 13:54:08 +00:00
nm-tapi-invalids.test [llvm-nm] Tidy up error messages 2021-02-15 13:54:08 +00:00
nm-tapi.test [TextAPI] Add support for arm64_32 2021-04-01 17:19:12 -07:00
nm-trivial-object.test
nm-universal-binary.test [llvm-nm] Switch command line parsing from llvm::cl to OptTable 2021-07-07 13:34:33 -07:00
nm-weak-global-macho.test
obj2yaml.test [yaml2obj/obj2yaml/llvm-readobj] Support printing and parsing AVR-specific e_flags 2021-04-15 15:54:28 +02:00
objc-imageinfo-coff.ll
objc-imageinfo-elf.ll
objc-imageinfo-macho.ll
objc-swift-mixed-imageinfo-macho.ll
objdump-export-list.test
objdump-no-sectionheaders.test
objdump-private-headers.test
objdump-relocations.test
objdump-section-content.test
objdump-sectionheaders.test
objdump-symbol-table.test
pr25877.test
relocation-executable.test
simple-archive.test [llvm-nm][test] Avoid deprecated alias -M (--print-armap) 2021-08-04 14:25:24 -07:00
size-trivial-macho.test
stackmap-dump.test
wasm-bad-data-symbol.yaml [lld][WebAssembly] Allow data symbols to extend past end of segment 2021-05-12 13:43:37 -07:00
wasm-bad-metadata-version.yaml [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-bad-reloc-type.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-bad-symbol-type.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-duplicate-name.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-invalid-file.yaml [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-invalid-section-order.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-invalid-start.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-missing-version.test [Object][WebAssembly] Update format of error messages 2021-01-25 21:12:53 -08:00
wasm-relocs-and-producers.yaml [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
wasm-string-outside-section.test
yaml2obj-elf-rel-noref.yaml [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
yaml2obj-elf-rel.yaml [llvm-readobj] - For SHT_REL relocations, don't display an addend. 2020-12-14 12:03:00 +03:00
yaml2obj-readobj.test