[lld] [llvm] [lld][AArch64][Build Attributes] Add support for AArch64 Build Attributes (PR #144082)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 4 00:18:11 PDT 2025


================
@@ -537,6 +538,52 @@ uint32_t ObjFile<ELFT>::getSectionIndex(const Elf_Sym &sym) const {
       this);
 }
 
+template <class ELFT>
+static void
+handleAArch64BAAndGnuProperties(ObjFile<ELFT> *file, Ctx &ctx, bool hasGP,
+                                const AArch64BuildAttrSubsections &baInfo,
+                                const GnuPropertiesInfo &gpInfo) {
----------------
sivan-shani wrote:

Explanation: inside `ObjFile<ELFT>::parse` in the loop that handles each section, when `.note.gnu.property` is being handled, it is always un-nulling (so to say) `f.aarch64PauthAbiCoreInfo`
Therefore it can be used in order to determine whether `.note.gnu.property` exists.
        

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


More information about the llvm-commits mailing list