llvm-project/lld/wasm
Sam Clegg 182b72aa48 [lld][WebAssembly] Generate TLS relocation code also when linking statically
Previously relocations were only generated for PIC output, but
relocations for TLS GOT entries are always needed when shared
memory is enabled, not just in PIC mode.

This means that the `__wasm_apply_global_tls_relocs` is now
generated even for statically linked (non-PIC) output.  Without
this the globals that hold the addresses of TLS symbols are
not set correctly.

Differential Revision: https://reviews.llvm.org/D112833
2021-10-29 13:26:35 -07:00
..
CMakeLists.txt Reland: "[lld][WebAssembly] Initial support merging string data" 2021-05-10 16:03:38 -07:00
Config.h [lld][WebAssembly] Initialize bss segments using memory.fill 2021-10-28 17:15:08 -07:00
Driver.cpp [lld] Rename addCombinedLTOObjects to match ELF driver. NFC 2021-10-28 11:46:19 -07:00
InputChunks.cpp fix comment typos to cycle bots 2021-10-27 09:53:08 -04:00
InputChunks.h [WebAssembly] Add explict TLS symbol flag 2021-09-09 10:03:30 -04:00
InputElement.h [WebAssembly] Remove WasmTagType 2021-10-05 17:11:22 -07:00
InputFiles.cpp [lld][WebAssembly] Handle TLS variables in Symbol::getVA. NFC 2021-10-29 10:45:30 -07:00
InputFiles.h [lld][WebAssembly] Handle duplicate archive member names in ThinLTO 2021-10-28 11:48:04 -07:00
LTO.cpp [Support][ThinLTO] Move ThinLTO caching to LLVM Support library 2021-10-18 18:57:25 -07:00
LTO.h [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
MapFile.cpp [WebAssembly][lld] Fix segfault on .bss sections in mapfile 2021-07-07 23:31:48 -07:00
MapFile.h [lld][WebAssembly] Add initial support for -Map/--print-map 2020-09-12 16:10:51 -07:00
MarkLive.cpp [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
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 [lld][WebAssembly] Cleanup output of --verbose 2021-09-10 11:35:50 -04:00
OutputSegment.cpp [lld][WebAssembly] Enable string tail merging in debug sections 2021-05-18 12:25:39 -07:00
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 [Coding style change][lld] Rename variables for non-ELF ports 2019-07-11 05:40:30 +00:00
SymbolTable.cpp [lld] Rename addCombinedLTOObjects to match ELF driver. NFC 2021-10-28 11:46:19 -07:00
SymbolTable.h [lld] Rename addCombinedLTOObjects to match ELF driver. NFC 2021-10-28 11:46:19 -07:00
Symbols.cpp [lld][WebAssembly] Handle TLS variables in Symbol::getVA. NFC 2021-10-29 10:45:30 -07: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 [lld][WebAssembly] Generate TLS relocation code also when linking statically 2021-10-29 13:26:35 -07:00
Writer.cpp [lld][WebAssembly] Generate TLS relocation code also when linking statically 2021-10-29 13:26:35 -07:00
Writer.h [WebAssembly] Refactor synthetic sections and relocation processing. NFC. 2019-05-21 09:13:09 +00:00
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