-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Linker error when building dylib with "vectorcall" no_mangle fn on x86-64 Linux #130196
Comments
I'm not sure there is anything we can do to make this work. The vectorcall calling convention requires a mangling that includes |
Is that specifically only affecting the vectorcall ABI? That one is still unstable so banning it on ELF targets is fairly easy. Do C/C++ compilers support this ABI on ELF targets? |
It affects any ABI which mandates a name mangling that includes an
GCC does not. Clang does. |
So what does clang do with those symbols on ELF targets? |
Turns out with clang it works for as long as you either don't use a version script or don't pass |
Building this file...
with
--crate-type=dylib
leads to a linker error on my system (x86_64-unknown-linux-gnu):Cc #124485
The text was updated successfully, but these errors were encountered: