[lld] [AArch64][GCS][LLD] Introduce -zgcs-report-dynamic Command Line Option (PR #127787)
Jack Styles via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 6 01:34:07 PST 2025
================
@@ -918,6 +918,60 @@ void ObjFile<ELFT>::initializeSections(bool ignoreComdats,
handleSectionGroup<ELFT>(this->sections, entries);
}
+template <typename ELFT>
+static void parseGnuPropertyNote(Ctx &ctx, uint32_t &featureAndType,
+ ArrayRef<uint8_t> &desc, ELFFileBase *f,
+ const uint8_t *base,
+ ArrayRef<uint8_t> *data = nullptr,
+ StringRef sectionName = ".note.gnu.property") {
----------------
Stylie777 wrote:
I did originally have this, however the `err` lambda function within `readGnuProperty` takes the sectionName from the section variable. I wanted to preserve this functionality, with the default being `.note.gnu.property` which is used when parsing a SharedFile as that does not have the InputSection data available where the name comes from.
I can revert this back to inlining the string, but this is the reason for that variable being there.
https://github.com/llvm/llvm-project/pull/127787
More information about the llvm-commits
mailing list