fix: fix cross compile to ARM926EJ-S is Broken (closes #15281) #15333
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
arm926ej_s arch should be ARMv5TEJ according to wikipedia, and in our company, we have this chip, the readelf below shows what is the native executable attributes should be look like:
but when we use zig to crosscompile using
zig cc -o x main.c --target=arm-linux-gnueabi -mcpu=arm926ej_s
the result of readelf's Tag_CPU_arch is v5TEI don't know this change is enough though, please let me know if I need change something else.
PS: i didn't test this myself because I cant compile zig_bootstrap due to ziglang/zig-bootstrap#148, this change is suggested by @nekopsykose in #15281 (comment)
closes #15281