[PATCH] D156505: [AArch64][ELF] Support R_AARCH64_AUTH_ABS64 static relocation

Daniil Kovalev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 22 18:46:02 PDT 2023


kovdan01 updated this revision to Diff 552562.
kovdan01 added a comment.

Propose additional unary/binary operator tests like `1 + sym at AUTH(ia,42) + 1`, `sym at AUTH(ia,0) + sym at AUTH(ia,0)`:

- Parsing assembly code
- Producing errors when emitting object file

To make the latter work properly, altered `EvaluateSymbolicAdd`. Without the change, incorrect relocations were emitted instead of producing an error. @MaskRay would be glad if you could look through this before landing since I consider these changes non-trivial.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156505/new/

https://reviews.llvm.org/D156505

Files:
  llvm/docs/PointerAuth.md
  llvm/include/llvm/BinaryFormat/ELFRelocs/AArch64.def
  llvm/lib/MC/MCExpr.cpp
  llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp
  llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h
  llvm/test/MC/AArch64/elf-reloc-ptrauth.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156505.552562.patch
Type: text/x-patch
Size: 22426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230823/b426c21e/attachment.bin>


More information about the llvm-commits mailing list