[llvm] [clang] [lld] [clang-tools-extra] [lld][AArch64][ELF][PAC] Support AUTH relocations and AUTH ELF marking (PR #72714)

Daniil Kovalev via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 9 12:42:46 PST 2024


================
@@ -566,6 +570,7 @@ constexpr const char *knownZFlags[] = {
     "origin",
     "pac-plt",
     "pack-relative-relocs",
+    "pack-relative-auth-relocs",
----------------
kovdan01 wrote:

Update on my previous comment: changing `getPackDynRelocs` as I suggested above is probably not the best option since android packed relocs just replace the regular relocation section (`lld::elf::Partition::relaDyn`), while relr relocs (both regular and auth ones) have their own separate sections (`lld::elf::Partition::relrDyn` and `lld::elf::Partition::relrAuthDyn`). So, changed the logic to what you have suggested - just use `pack-relative-relocs` option for both regular and auth relr relocations. See d3411595fbbe37a14b0187ff0d134bd105892931.


https://github.com/llvm/llvm-project/pull/72714


More information about the cfe-commits mailing list