afonso360 commented on issue #1885:
This was closed in #4546, forgot to mark it.
bnjbvr closed issue #1885:
Feature
Support TLS data objects with COFF binaries.
Benefit
TLS data objects are already supported for ELF and Mach-O binaries.
Implementation
Add a new
x86_coff_tls_get_addrinstruction. See https://github.com/bjorn3/rustc_codegen_cranelift/issues/388#issuecomment-532930282 for what x86_64 instructions to lower thex86_coff_tls_get_addrinstruction to. Then make changes to theobjectcrate as necessary to generate TLS sections for COFF.Alternatives
N/A
Last updated: Dec 13 2025 at 19:03 UTC