-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Consider integrating Qualcomm's musl port for Hexagon #21588
Comments
FWIW, there have been multiple attempts to upstream this port from 2020 through 2023, with the latest being in late 2023. From what I can tell reading all the mailing list threads, all(?) issues with the port have been addressed and it's just a question of getting a final review done now. So hopefully we wouldn't have to carry this patch for too long. |
Alternatively, do the code in Zig instead. Related: The end-game here is to have no .c files for musl, glibc, wasi-libc, or mingw-w64, and be able to compile them with an LLVM-less zig compiler. |
Some triaging guidance:
|
This could work for some of the arch-specific routines introduced in the port for sure. Stuff like But we would still need to carry a patch with at least some of the arch bits: Stuff like the syscall list, |
glibc does not have a Hexagon port, nor does upstream musl. However, Qualcomm maintain a musl port at https://github.com/quic/musl which is used in their Hexagon toolchain.
This port is based on musl 1.2.2 (2021) so it's fairly recent. Judging by the commit history, it also doesn't change that frequently. I think it should be feasible to apply the Hexagon bits on top of musl 1.2.5. We wouldn't need to sync with Qualcomm's fork much due to the low frequency of commits.
The text was updated successfully, but these errors were encountered: