Skip to content

Add getauxval for Android #1987

Closed
Closed
@jack-signal

Description

@jack-signal

getauxval is useful for detecting CPU specific features such as availability of the ARMv8 AES instructions.

Currently in this crate, getauxval is available on Linux but not on Android. This function was added to Android in API Level 18 (https://developer.android.com/ndk/guides/cpu-features). So it might be a problem for someone building to an older API level. However on aarch64 and x86_64 the earliest API Level is 21 and thus for these architectures getauxval is always available.

Happy to contribute a patch, just wanted to check if enabling getauxval only for aarch64-linux-android and x86_64-linux-android was ok or if you had suggestions on how to handle the possibility of it not being included when built for an old Android.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions