[lld] lld: add support for NOCROSSREFS(_TO) (PR #95714)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 14:53:04 PDT 2024
================
@@ -1714,3 +1714,16 @@ bool LinkerScript::shouldAddProvideSym(StringRef symName) {
Symbol *sym = symtab.find(symName);
return sym && !sym->isDefined() && !sym->isCommon();
}
+
+bool NoCrossRefList::matchesRefToSection(const OutputSection *section) const {
+ if (toSection)
+ return toSection.value() == section->name;
+
+ return std::find(outputSections.begin(), outputSections.end(),
----------------
MaskRay wrote:
llvm::is_contained
https://github.com/llvm/llvm-project/pull/95714
More information about the llvm-commits
mailing list