Skip to content

_tls_index vs tls_index for x86-windows #13549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jedisct1 opened this issue Nov 14, 2022 · 0 comments · Fixed by #13569
Closed

_tls_index vs tls_index for x86-windows #13549

jedisct1 opened this issue Nov 14, 2022 · 0 comments · Fixed by #13569
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@jedisct1
Copy link
Contributor

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.

@jedisct1 jedisct1 added the bug Observed behavior contradicts documented or intended behavior label Nov 14, 2022
@Vexu Vexu linked a pull request Nov 17, 2022 that will close this issue
@andrewrk andrewrk added this to the 0.10.1 milestone Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants