Skip to content

Support -z rewrite-endbr on aarch64 #1552

@jvoisin

Description

@jvoisin

Currently, mold only supports -z rewrite-endbr on x86_64 (the ENDBR64 landing pad), but aarch64 has something similar called BTI. It would be nice if mold could support this.

I gave a try at implementing it, based on 17f0d85, but for some reasons the main function keeps getting its landing pad removed, and I can't figure out why.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions