[PAC][AArch64][ELF] Support signed TLSDESC#78
Open
kovdan01 wants to merge 3 commits intodkovalev/pauth-signed-got-mainlinefrom
Open
[PAC][AArch64][ELF] Support signed TLSDESC#78kovdan01 wants to merge 3 commits intodkovalev/pauth-signed-got-mainlinefrom
kovdan01 wants to merge 3 commits intodkovalev/pauth-signed-got-mainlinefrom
Conversation
Support the following relocations and assembly operators: - `R_AARCH64_AUTH_TLSDESC_ADR_PAGE21` (`:tlsdesc_auth:` for `adrp`) - `R_AARCH64_AUTH_TLSDESC_LD64_LO12` (`:tlsdesc_auth_lo12:` for `ldr`) - `R_AARCH64_AUTH_TLSDESC_ADD_LO12` (`:tlsdesc_auth_lo12:` for `add`) `TLSDESC_AUTH_CALLSEQ` pseudo-instruction is introduced which is later expanded to actual instruction sequence like the following. ``` adrp x0, :tlsdesc:var ldr x16, [x0, #:tlsdesc_lo12:var] add x0, x0, #:tlsdesc_lo12:var autia x16, x0 .tlsdesccall var blr x16 (TPIDR_EL0 offset now in x0) ``` FIXME: use BLRAA instead of AUTIA + BLR. BLRAA is currently explicitly unsupported in AArch64SLSHardening pass. Only SelectionDAG ISel is supported. Tests with 'auth' in name have corresponding variants w/o it.
Support `R_AARCH64_AUTH_TLSDESC_ADR_PAGE21`, `R_AARCH64_AUTH_TLSDESC_LD64_LO12` and `R_AARCH64_AUTH_TLSDESC_LD64_LO12` static TLSDESC relocations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.