[lld] [llvm] [lld][AArch64][Build Attributes] Add support for AArch64 Build Attributes (PR #144082)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 4 12:22:54 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") {
----------------
MaskRay wrote:
should check the section type instead of using the string name (unneeded overhead for other targets)
https://github.com/llvm/llvm-project/pull/144082
More information about the llvm-commits
mailing list