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

Mark Murray via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 05:49:27 PDT 2025


================
@@ -552,8 +593,23 @@ template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) {
   StringRef shstrtab = CHECK2(obj.getSectionStringTable(objSections), this);
   uint64_t size = objSections.size();
   sections.resize(size);
+
+  AArch64BuildAttrSubsections aarch64BAsubSections;
+  bool hasAArch64BuildAttributes = false;
+
   for (size_t i = 0; i != size; ++i) {
     const Elf_Shdr &sec = objSections[i];
+    // Read GNU property section into a per-InputFile structure that will be
+    // merged at a later stage. A synthetic section will be created for the
+    // merged contents.
+    if (check(obj.getSectionName(sec, shstrtab)) == ".note.gnu.property") {
----------------
MarkMurrayARM wrote:

Hi I'll be taking this PR over from Sivan.

I don't see much precedent for doing this in this file (looking for getSectionType() uses). Could you please clarify? Thx!

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


More information about the llvm-commits mailing list