llvm-project/lld/test/ELF/lto
Rui Ueyama cc8e4e839f Make a hack for LTO work only when you are actually doing LTO.
We allow an archive file without symbol table as a linker input as a
workaround for a very common error in LTO build. But that logic worked
even for an archive file containing non-bitcode files, which is not
expected. This patch limits that workaround to one that contains only
bitcode files.

Differential Revision: https://reviews.llvm.org/D59373

llvm-svn: 356186
2019-03-14 18:21:32 +00:00
..
Inputs Output ELF files after ThinLTO is run. 2019-02-26 19:29:14 +00:00
abs-resol.ll Symbols defined in linker scripts should not have dso_local flag set in LTO resolutions. 2018-02-08 04:25:52 +00:00
amdgcn.ll Handle identifying AMDGPU bitcode files 2018-08-27 12:40:00 +00:00
archive-2.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
archive-3.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
archive-no-index.ll Make a hack for LTO work only when you are actually doing LTO. 2019-03-14 18:21:32 +00:00
archive.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
asmundef.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
available-externally.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
bitcode-nodatalayout.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
cache.ll [test] Mark atime-based tests unsupported on NetBSD 2018-12-07 16:21:08 +00:00
codemodel.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
combined-lto-object-name.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
comdat.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
comdat2.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
common.ll
common2.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
common3.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
cpu-string.ll [ELF] - Allow set CPU string with -plugin-opt=mcpu=<xxx> 2018-02-07 08:50:36 +00:00
ctors.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
data-ordering-lto.s [lld][NFC] Use explicit --symbols instead of -t in tests using llvm-readelf. 2018-11-06 19:34:22 +00:00
debugger-tune.ll [ELF] - Add testcase for -debugger-tune=<value> 2018-02-07 08:43:19 +00:00
defsym.ll [lld][NFC] Use explicit --symbols instead of -t in tests using llvm-readelf. 2018-11-06 19:34:22 +00:00
discard-value-names.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
drop-debug-info.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
drop-linkage.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
duplicated-name.ll Remember archive name when creating LazyObjectFile. 2017-05-05 13:55:51 +00:00
duplicated.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
dynamic-list.ll [ELF] Remove checking for spurious '@' at the end of dynamic sym names 2019-01-08 10:50:59 +00:00
dynsym.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
emit-llvm.ll Add --plugin-opt=emit-llvm option. 2018-12-14 21:58:49 +00:00
inline-asm.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
internalize-basic.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
internalize-exportdyn.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
internalize-llvmused.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
internalize-undef.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
internalize-version-script.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
irmover-error.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
keep-undefined.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
lazy-internal.ll Add a test for an issue fixed in r329092. 2018-04-03 18:35:46 +00:00
libcall-archive.ll ELF: Only add libcall symbols to the link if defined in bitcode. 2018-08-08 23:48:12 +00:00
linkage.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
linker-script-symbols-assign.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
linker-script-symbols-ipo.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
linker-script-symbols.ll [LLD] Fixed flaky unit test based on build directory. 2019-03-08 22:33:22 +00:00
linkonce-odr.ll
linkonce.ll
lto-start.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
ltopasses-basic.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
ltopasses-custom.ll [NewPM] teach -passes= to emit meaningful error messages 2018-10-17 10:36:23 +00:00
metadata.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
mix-platforms.ll
mix-platforms2.ll [ELF] - Report proper error message about mixing bitcode files. 2018-07-11 12:32:00 +00:00
module-asm.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
new-pass-manager.ll Added support for LTO options: sample_profile, new_pass_manager and debug_pass_manager 2018-04-09 17:56:07 +00:00
obj-path.ll Output ELF files after ThinLTO is run. 2019-02-26 19:29:14 +00:00
opt-level.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
opt-remarks.ll Reland "[Remarks] Add -foptimization-record-passes to filter remark emission" 2019-03-12 21:22:27 +00:00
parallel-internalize.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
parallel.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
pic.ll
ppc64le.ll [PPC64] Handle ppc64le triple in getBitcodeMachineKind. 2018-09-20 00:26:49 +00:00
r600.ll Handle identifying AMDGPU bitcode files 2018-08-27 12:40:00 +00:00
relax-relocs.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
relocatable.ll [WebAssembly] LTO: Don't include bitcode-only symbols in the symtab 2019-03-07 02:43:19 +00:00
relocation-model.ll [lld] Infer relocation model from module flags in relocatable LTO link. 2017-05-22 21:11:44 +00:00
resolution.ll
sample-profile.ll [LTO] Errors in LLVM backend should manifest as lld errors 2018-07-02 21:01:43 +00:00
save-temps.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
section-name.ll [lld][NFC] Update tests to use -S instead of -s when using llvm-readelf. 2018-11-05 20:39:06 +00:00
setting-dso-local.ll [LLD][ELF] - Show symbols visibility in "undefined symbol..." error messages. 2019-03-12 11:10:29 +00:00
shlib-undefined.ll [ELF] Remove checking for spurious '@' at the end of dynamic sym names 2019-01-08 10:50:59 +00:00
start-lib.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
symbol-ordering-lto.s [lld][NFC] Use explicit --symbols instead of -t in tests using llvm-readelf. 2018-11-06 19:34:22 +00:00
thin-archivecollision.ll [LLD] Mark a number of x86 only tests to require x86 2017-07-18 18:40:50 +00:00
thinlto-cant-write-index.ll [ELF][test] chmod u+w to prevent annoying rm prompt 2019-03-05 09:56:50 +00:00
thinlto-debug-fission.ll remove temporal file directory before testing in thinlto-debug-fission.ll 2018-07-16 20:28:48 +00:00
thinlto-emit-imports.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
thinlto-index-file.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
thinlto-index-only.ll [ELF] - Test LLD creates empty .imports file. 2018-07-05 12:23:37 +00:00
thinlto-no-index.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
thinlto-obj-path.ll [llvm-nm] Write "no symbol" output to stderr 2018-10-05 21:10:03 +00:00
thinlto-object-suffix-replace.ll [ELF] -thinlto-object-suffix-replace=: don't error if the path does not end with old suffix 2018-08-21 23:28:12 +00:00
thinlto-prefix-replace.ll Handle --plugin-opt= options as alias options. 2018-05-22 02:53:11 +00:00
thinlto.ll ELF: Run the same test without --thinlto-jobs as we do with --thinlto-jobs. 2018-05-29 23:32:49 +00:00
timepasses.ll Remove "--full-shutdown" and instead use an environment variable LLD_IN_TEST. 2018-02-16 23:41:48 +00:00
tls-mixed.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
tls-preserve.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
type-merge.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
type-merge2.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
undef-mixed.ll
undef-weak.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
undef.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
undefined-puts.ll [ELF] Simplify RelRo, TLS, NOBITS section ranks and make RW PT_LOAD start with RelRo 2019-03-14 03:47:45 +00:00
unnamed-addr-comdat.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
unnamed-addr-drop.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
unnamed-addr-lib.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
unnamed-addr.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
verify-invalid.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
version-script.ll [ELF] Remove checking for spurious '@' at the end of dynamic sym names 2019-01-08 10:50:59 +00:00
version-script2.ll Strip @VER suffices from the LTO output. 2018-03-28 22:45:39 +00:00
visibility.ll [ELF] Simplify RelRo, TLS, NOBITS section ranks and make RW PT_LOAD start with RelRo 2019-03-14 03:47:45 +00:00
weak.ll [ELF] Remove -m argument to lld in test files. NFC. 2018-05-30 17:57:08 +00:00
weakodr-visibility.ll [ELF] - Added testcase for testing visibility of weak_odr symbols. 2018-02-23 10:08:15 +00:00
wrap-1.ll Set dso_local in lld. 2018-01-16 16:49:05 +00:00
wrap-2.ll Change how we handle -wrap. 2018-08-22 07:02:26 +00:00