llvm-project
6d00b40d - [ELF][AArch64][PAC] Replace R_AARCH64_AUTH_ABS64 addend hack

Commit
42 days ago
[ELF][AArch64][PAC] Replace R_AARCH64_AUTH_ABS64 addend hack Rather than trying to infer deep down in AArch64::relocate whether we need to actually write anything or not, we should instead mark the relocations that we no longer want so we don't actually apply them. This is similar to how X86_64::deleteFallThruJmpInsn works, although given the target is still valid we don't need to mess with the offset, just the expr. This is mostly NFC, but if the addend ever exceeded 32-bits but then came back in range then previously we'd pointlessly write it, but now we do not. We also validate that the addend is actually 32-bit so will catch errors in our implementation rather than silently assuming any relocations where that isn't true have been moved to .rela.dyn. Reviewers: kovdan01, MaskRay Reviewed By: MaskRay Pull Request: https://github.com/llvm/llvm-project/pull/171192
Author
Parents
Loading