@@ -540,15 +540,6 @@ uint32_t ObjFile<ELFT>::getSectionIndex(const Elf_Sym &sym) const {
540540 this );
541541}
542542
543- // Forward declarations:
544- template <typename ELFT>
545- static void parseGnuPropertyNote (Ctx &, ELFFileBase &, uint32_t ,
546- ArrayRef<uint8_t > &, const uint8_t *,
547- ArrayRef<uint8_t > * = nullptr );
548- template <typename ELFT>
549- static gnuPropertiesInfo readGnuProperty (Ctx &, const InputSection &,
550- ObjFile<ELFT> &);
551-
552543template <class ELFT >
553544static void
554545handleAArch64BAAndGnuProperties (const ELFT &tPointer, Ctx &ctx, bool isBE,
@@ -603,6 +594,11 @@ handleAArch64BAAndGnuProperties(const ELFT &tPointer, Ctx &ctx, bool isBE,
603594 }
604595}
605596
597+ // Forward declaration:
598+ template <typename ELFT>
599+ static gnuPropertiesInfo readGnuProperty (Ctx &, const InputSection &,
600+ ObjFile<ELFT> &);
601+
606602template <class ELFT > void ObjFile<ELFT>::parse(bool ignoreComdats) {
607603 object::ELFFile<ELFT> obj = this ->getObj ();
608604 // Read a section table. justSymbols is usually false.
@@ -1034,7 +1030,7 @@ template <typename ELFT>
10341030static void parseGnuPropertyNote (Ctx &ctx, ELFFileBase &f,
10351031 uint32_t featureAndType,
10361032 ArrayRef<uint8_t > &desc, const uint8_t *base,
1037- ArrayRef<uint8_t > *data) {
1033+ ArrayRef<uint8_t > *data = nullptr ) {
10381034 auto err = [&](const uint8_t *place) -> ELFSyncStream {
10391035 auto diag = Err (ctx);
10401036 diag << &f << " :(" << " .note.gnu.property+0x"
0 commit comments