Skip to content

Use getauxval to implement dynamic arch on ARM and AArch64 #989

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

Closed
yuyichao opened this issue Oct 20, 2016 · 2 comments
Closed

Use getauxval to implement dynamic arch on ARM and AArch64 #989

yuyichao opened this issue Oct 20, 2016 · 2 comments

Comments

@yuyichao
Copy link
Contributor

I've just came across this post the other day which suggests that even though the feature registers cannot be accessed in EL0, the kernel puts this info in the auxiliary vector which is the recommended way to do feature detection on ARM and AArch64 without string parsing.

If you are willing to hard code the enum values when glibc header does not provide them, you can also use dlsym to find this symbol in case an old glibc is used at compile time (this would be useful for julia since the arm binary is going to be compiled on a host with an old glibc).

@martin-frbg
Copy link
Collaborator

Implemented now for aarch64 by ashwinyes in #1829

@martin-frbg
Copy link
Collaborator

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