Skip to content

Unify handling of pointer authentication features #155868

Description

@jchlanda

This is a follow up task to the introduction of aarch64-unknown-linux-pauthtest target.

In that PR, pointer authentication is enabled based on the target’s environment (for example additional function attributes). This approach introduces layering concerns and restricts the functionality to a single, hardcoded environment.

It would be preferable to decouple these features from specific targets/environments.

Clang provides a useful reference model here. It introduces language flags and corresponding feature definitions. Then maps platform (environment) to a set of language flags. These flags have default values, but can be overridden by the user. The resulting language options are then used to derive a target-agnostic set of features that ultimately define the signing schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions