[lld] lld: add support for NOCROSSREFS(_TO) (PR #95714)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 06:21:19 PDT 2024
================
@@ -235,6 +236,21 @@ void ScriptParser::readVersionScriptCommand() {
}
}
+void ScriptParser::readNoCrossRefs(bool to) {
+ expect("(");
+
+ script->nocrossrefs.push_back({});
+
+ script->nocrossrefs.back().firstOnly = to;
+
+ while (!atEOF() && !errorCount() && peek() != ")") {
+ StringRef section = next();
----------------
smithp35 wrote:
For an initial version I agree that being compatible with GNU ld is worthwhile.
https://github.com/llvm/llvm-project/pull/95714
More information about the llvm-commits
mailing list