hanchenye-llvm-project/lld/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
..
CMakeLists.txt
Config.h [lld][WebAssembly] Initialize bss segments using memory.fill 2021-10-28 17:15:08 -07:00
Driver.cpp [lld][WebAssembly] Remove redundant config setting 2022-01-20 15:21:56 -08:00
InputChunks.cpp fix comment typos to cycle bots 2021-10-27 09:53:08 -04:00
InputChunks.h [lld][WebAssembly] Handle TLS symbols in older object file 2022-01-27 17:27:09 -08:00
InputElement.h [WebAssembly] Remove WasmTagType 2021-10-05 17:11:22 -07:00
InputFiles.cpp [lld][WebAssembly] Handle TLS symbols in older object file 2022-01-27 17:27:09 -08:00
InputFiles.h [lld][WebAssembly] Handle duplicate archive member names in ThinLTO 2021-10-28 11:48:04 -07:00
LTO.cpp [Support] Improve Caching conformance with Support library behavior 2021-11-04 13:00:44 -07:00
LTO.h
MapFile.cpp
MapFile.h
MarkLive.cpp
MarkLive.h
Options.td fix comment typos to cycle bots 2021-10-27 09:53:08 -04:00
OutputSections.cpp [lld][WebAssembly] Initialize bss segments using memory.fill 2021-10-28 17:15:08 -07:00
OutputSections.h
OutputSegment.cpp
OutputSegment.h [lld][WebAssembly] Initialize bss segments using memory.fill 2021-10-28 17:15:08 -07:00
Relocations.cpp fix comment typos to cycle bots 2021-10-27 09:53:08 -04:00
Relocations.h
SymbolTable.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
SymbolTable.h [lld] Rename addCombinedLTOObjects to match ELF driver. NFC 2021-10-28 11:46:19 -07:00
Symbols.cpp [lld] Add support for other demanglers other than Itanium 2022-01-05 03:25:41 +00:00
Symbols.h fix comment typos to cycle bots 2021-10-27 09:53:08 -04:00
SyntheticSections.cpp [lld][WebAssembly] Generate TLS relocation code also when linking statically 2021-10-29 13:26:35 -07:00
SyntheticSections.h [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
Writer.cpp Re-land [LLD] Remove global state in lldCommon 2022-01-20 14:53:26 -05:00
Writer.h
WriterUtils.cpp [WebAssembly] Remove WasmTagType 2021-10-05 17:11:22 -07:00
WriterUtils.h [WebAssembly] Remove WasmTagType 2021-10-05 17:11:22 -07:00