Skip to content
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

Mislink on Windows with lld and thinlto #53

Closed
djkoloski opened this issue Jul 17, 2021 · 3 comments
Closed

Mislink on Windows with lld and thinlto #53

djkoloski opened this issue Jul 17, 2021 · 3 comments

Comments

@djkoloski
Copy link

It appears that validate_utf8_basic and similar functions trigger a mislink on Windows with lld and thinlto. This is not a terribly uncommon combination, so it may be worth exploring alternatives that do not cause this mislink.

This is an issue @Kixiron ran into while using bytecheck, which uses simdutf8 for fast string validation. The issue was traced back to simdutf8 using a release build with debug symbols and WinDbg, then the memory backing the AtomicPtr was rewound to the beginning of the application and verified to be invalid. This indicates that the function pointer placed in it was not relocated to the correct address.

@hkratz
Copy link
Contributor

hkratz commented Jul 20, 2021

@djkoloski Thanks for the heads-up! Seems like a bug in LLD, let's hope we can get it fixed soon.

@hkratz
Copy link
Contributor

hkratz commented Aug 22, 2021

That is unfortunately still an issue with LLD from LLVM 13.

@hkratz
Copy link
Contributor

hkratz commented Jan 8, 2023

This has been fixed.

@hkratz hkratz closed this as completed Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants