[lld] [AArch64][GCS][LLD] Introduce -zgcs-report-dynamic Command Line Option (PR #127787)
Jack Styles via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 00:49:25 PST 2025
================
@@ -1418,6 +1425,24 @@ std::vector<uint32_t> SharedFile::parseVerneed(const ELFFile<ELFT> &obj,
return verneeds;
}
+// To determine if a shared file can support the AArch64 GCS extension, the
+// program headers for the object need to be read. This ensures when input
+// options are read, appropriate warning/error messages can be emitted depending
+// on the user's command line options.
+template <typename ELFT>
+uint64_t
+SharedFile::parseGnuAttributes(const typename ELFT::PhdrRange headers) {
+ if (numElfPhdrs == 0)
+ return 0;
+ uint64_t attributes = 0;
+ for (unsigned i = 0; i < numElfPhdrs; i++)
----------------
Stylie777 wrote:
You are right, that is my mistake and thank you for the information relating to this it is very helpful. I will work on updating this so it can better read the GNU Attributes within the Shared File.
https://github.com/llvm/llvm-project/pull/127787
More information about the llvm-commits
mailing list