llvm-project/lld/test/wasm
Sam Clegg 875ee937ae [lld][WebAssembly] Handle TLS symbols in older object file
In older versions of llvm (e.g. llvm 13), symbols were not individually
flagged as TLS.  In this case, the indent was to implicitly mark any
symbols defined in TLS segments as TLS.  However, we were not performing
this implicit conversion if the segment was explicitly marked as TLS

As it happens, llvm 13 was branched between the addition of the segment
flag and the addition of the symbol flag. See:

- segment flag added: https://reviews.llvm.org/D102202
- symbol flag added: https://reviews.llvm.org/D109426

Testing this is tricky because the assembler will imply the TLS status
of the symbol based on the segment its declared in, so we are forced to
use a yaml file here.

Fixes: https://github.com/emscripten-core/emscripten/issues/15891

Differential Revision: https://reviews.llvm.org/D118414
2022-01-27 17:27:09 -08:00
..
Inputs [WebAssembly] Make EH work with dynamic linking 2021-10-12 23:28:27 -07:00
lto [lld][WebAssemlby] Always enable mutable-globals feature in PIC mode 2021-10-28 16:24:54 -07:00
alias.s [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
archive-export.ll
archive-no-index.s
archive-weak-undefined.ll
archive.ll
bss-only.s
bsymbolic.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
call-indirect.ll [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
check-arch-32-in-64.test
check-arch-64-in-32.test
comdat-sections.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
comdats.ll
command-exports-no-tors.s
command-exports.s
compress-relocs.ll
conflict.test
corrupted.wasm.test
ctor-gc-setup.test
ctor-gc.test
ctor-no-gc.test
ctor_return_value.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
custom-section-name.ll
custom-sections.ll
data-layout.s [WebAssembly] Fix PIC/GOT codegen for wasm64 2021-05-20 09:59:31 -07:00
data-segment-merging.ll
data-segments.ll [lld][WebAssembly] Perform data relocations during start function 2022-01-18 14:08:42 -08:00
debug-removed-fn.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
debug-undefined-fs.s [lld][WebAssembly] Fix for debug relocations against undefined function symbols 2021-12-02 08:36:28 -08:00
debuginfo-undefined-global.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
debuginfo.test Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches 2021-12-24 00:47:04 +02:00
demangle.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
driver.ll
duplicate-function-imports.s Reland: "[WebAssembly] Deduplicate imports of the same module name, field name, and type" 2021-07-22 14:16:05 -07:00
duplicate-global-imports.s Reland: "[WebAssembly] Deduplicate imports of the same module name, field name, and type" 2021-07-22 14:16:05 -07:00
duplicate-table-imports.s Reland: "[WebAssembly] Deduplicate imports of the same module name, field name, and type" 2021-07-22 14:16:05 -07:00
early-exit-for-bad-paths.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
emit-relocs-fpic.s
emit-relocs.ll
entry-signature.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
entry.ll
export-all.ll
export-all.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
export-empty.test
export-if-defined.s [lld][WebAssembly] Add `--export-if-defined` 2021-04-29 10:58:45 -07:00
export-name.ll
export-optional-lazy.test
export-optional.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
export-table-explicit.test [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
export-table.test [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
export.s [lld][WebAssembly] Rewrite exports test in assembly. NFC 2021-04-05 11:14:12 -07:00
externref.s
fatal-warnings.ll
function-imports-first.ll
function-imports.ll
function-index.test
gc-imports.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
gc-sections.ll
global-base.test
globals.s Fix typo from https://reviews.llvm.org/D101399 2021-04-28 11:31:16 -07:00
growable-table.test [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
import-attribute-mismatch.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
import-memory.test [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
import-module.ll
import-name.ll
import-table.test [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
init-fini-no-gc.ll
init-fini.ll
invalid-mvp-table-use.s
invalid-stack-size.test
large-memory.test [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
lit.local.cfg
load-undefined.test
local-symbols.ll [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
locals-duplicate.test [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
many-functions.ll
map-file.s [WebAssembly] Generate R_WASM_FUNCTION_OFFSET relocs in debuginfo sections 2021-07-19 14:02:33 -07:00
merge-string-debug.s [lld][WebAssemlby] Fix for string merging of -dwarf-5 sections 2021-06-01 14:33:56 -07:00
merge-string.s [lld][WebAssembly] Allow data symbols to extend past end of segment 2021-05-12 13:43:37 -07:00
multi-table.s [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
multivalue-return-func-types.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
mutable-global-exports.s
mutable-globals.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
name-section-mangling.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
no-tls.s
optional-symbol.s
pic-static.ll
pie.ll [lld][WebAssembly] Perform data relocations during start function 2022-01-18 14:08:42 -08:00
reloc-addend.s [lld][WebAssembly] Remove relocation target verification 2021-05-11 12:05:14 -07:00
reloc-relative.s
relocatable-comdat.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
relocatable-options.test
relocatable.ll [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
relocation-bad-tls.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
reproduce.ll
responsefile.test [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
section-symbol-relocs.yaml
shared-export-dynamic.s [lld][WebAssembly] Convert more tests to asm format. NFC 2021-05-03 17:16:31 -07:00
shared-memory-bss.s [lld][WebAssembly] Initialize bss segments using memory.fill 2021-10-28 17:15:08 -07:00
shared-memory-no-atomics.yaml [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
shared-memory.yaml [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
shared-needed.s Fix test failure created by ef8c9135ef 2021-09-14 07:35:05 -07:00
shared-weak-symbols.s [lld][WebAssembly] Handle weakly defined symbols in shared libraries. 2021-08-19 19:25:49 -04:00
shared-weak-undefined.s [WebAssembly] Add import info to `dylink` section of shared libraries 2021-10-15 11:49:16 -07:00
shared.s [lld][WebAssemlby] Convert test to check disassembly output. NFC 2022-01-20 09:32:01 -08:00
shared64.s [lld][WebAssemlby] Convert test to check disassembly output. NFC 2022-01-20 09:32:01 -08:00
signature-mismatch-export.ll
signature-mismatch-relocatable.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
signature-mismatch-unknown.ll
signature-mismatch-weak.ll
signature-mismatch.s [WebAssembly][lld] Convert signature-mismatch.ll test to asm. NFC 2021-08-18 22:17:02 -04:00
stack-first.test [lld][WebAssembly] Align __heap_base 2021-07-24 14:03:26 +02:00
stack-pointer.ll [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
startstop.ll [lld][WebAssembly] Prefer objdump -d over obj2yaml for tests. NFC 2021-08-10 18:17:58 -04:00
strip-all.test
strip-debug.test [lld][WebAssembly] Do not remove name section with --strip-debug 2021-07-26 11:06:52 -07:00
symbol-type-mismatch.s
tag-section.ll [WebAssembly] Make EH work with dynamic linking 2021-10-12 23:28:27 -07:00
target-feature-disallowed.yaml
target-feature-none.yaml
target-feature-required.yaml
target-feature-used.yaml
threads.s
tls-align.s
tls-export.s [WebAssembly] Allow import and export of TLS symbols between DSOs 2021-09-14 06:47:37 -07:00
tls-implicit.yaml [lld][WebAssembly] Handle TLS symbols in older object file 2022-01-27 17:27:09 -08:00
tls-non-shared-memory-basic.s [lld][WebAssembly] Fix crash on un-used __tls_base symbol 2021-09-09 12:45:58 -04:00
tls-non-shared-memory.s [lld][WebAssembly] Generate TLS relocation code also when linking statically 2021-10-29 13:26:35 -07:00
tls.s [lld][WebAssembly] Generate TLS relocation code also when linking statically 2021-10-29 13:26:35 -07:00
trace-symbol.ll
trace.test
undefined-data.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
undefined-entry.test
undefined-weak-call.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
undefined.ll
unresolved-symbols.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
version.s
visibility-hidden.ll
weak-alias-overide.ll [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
weak-alias.ll [WebAssembly] Rename WasmLimits::Initial to ::Minimum. NFC. 2021-03-24 09:10:11 +01:00
weak-and-strong-undef.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
weak-symbols.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
weak-undefined-pic.s [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
weak-undefined.s [lld][WebAssembly] Do not remove name section with --strip-debug 2021-07-26 11:06:52 -07:00
whole-archive.test
wrap.ll