Skip to content

_tls_index vs tls_index for x86-windows #13549

Closed

Description

@jedisct1

Zig Version

0.11.0-dev.175+7eed028f

Steps to Reproduce and Observed Behavior

git clone --depth=1 https://github.com/jedisct1/libsodium.git
cd libsodium
zig build -Dtarget=x86-windows
LLD Link... lld-link: error: <root>: undefined symbol: _tls_index
error: FileNotFound

The _tls_index symbol is properly found when building for the x86_64-windows and aarch64-windows targets, not for x86-windows.

x86-windows expects _tls_index to be tls_index in lib/zig/libc/mingw/crt/tlssup.c.

Expected Behavior

Being able to build shared libraries for x86-windows.

Activity

  1. added
    bug
    on Nov 14, 2022
  2. linked a pull request that will close this issuewindows: _tls_index linker error fixes #13569on Nov 17, 2022
  3. added this to the 0.10.1 milestone on Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions