[lld] [lld][AArch64][ELF][PAC] Support AUTH relocations and AUTH ELF marking (PR #72714)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 00:43:39 PDT 2024


================
@@ -1900,6 +1932,18 @@ static void removeUnusedSyntheticSections() {
         auto *sec = cast<SyntheticSection>(s);
         if (sec->getParent() && sec->isNeeded())
           return false;
+        // Packed AArch64 AUTH relocs might be moved from .relr.auth.dyn to
----------------
MaskRay wrote:

This is the only place "Packed AArch64 AUTH relocs" is mentioned. We can avoid this term. Just say
".relr.auth.dyn relocations may be moved to .rela dyn in finalizeAddressDependentContent, making .rela.dyn no longer empty. Conservatively keep .rela.dyn. .relr.auth.dyn can be made empty, but we would fail to remove it here."

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


More information about the llvm-commits mailing list