-
Notifications
You must be signed in to change notification settings - Fork 267
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
Question: can we build armv6 ABI for Alpine Linux using this toolchain #43
Comments
I don't understand what you're asking for. It sounds like you think armv6 and armv7 are different ABIs; they're not. They're just different ISA levels. A toolchain targeting armv6 produces binaries/libraries that are perfectly interlinkable with armv7 ones and vice versa; the only difference is whether additional armv7-only instructions are used (in which case the code only runs on armv7 and up as opposed to armv6 and up). If you have a toolchain targeting armv6, just adding |
@richfelker, thanks for the information. I now get the concept of ABI compatibility between armv6 and armv7. :) If Alpine distro only provides |
You don't need a custom toolchain to do this, just |
Thanks. I tried sessing CFLAGS in CMake:
|
I made a simple test: #include <stdio.h>
int main()
{
asm volatile ("dmb ish" : : : "memory");
return 0;
} compiled with Thanks for your help! |
Apologies in advance if it is unrelated. We are trying to figure out how to get
armv7-alpine-linux-musleabihf
for Alpine Linux ARM32 v7 at https://github.com/dotnet/coreclr/issues/17468. The supported ABI by dotnet runtime atm is v7 for 32 bits and v8 for 64.Since Alpine Linux armhf only provides
armv6-alpine-linux-musleabihf
for 32-bits targets (armv6 and armv7 devices), we were hoping to compile it ourselves; if possible.Is this the right place to start? If not, could you suggest what would be the good place to start (if it is possible at all)?
Thanks!
The text was updated successfully, but these errors were encountered: