[PATCH] D71981: [LLD] [COFF] Don't error out on duplicate absolute symbols with the same value

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 2 16:50:34 PST 2020


rnk added inline comments.


================
Comment at: lld/COFF/SymbolTable.cpp:597
+      reportDuplicate(s, nullptr);
+  } else if (!isa<DefinedCOFF>(s))
     reportDuplicate(s, nullptr);
----------------
This looks like the code that makes LLD not report duplicates between absolute and regular symbols. Should we re-evaluate that decision?

The logic dates back to 79a5e6b1b77efe7770503ebce2a808f0b89d9e50, which doesn't explicitly mention this case. That makes me think this behavior is not intentional, and we can change it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71981/new/

https://reviews.llvm.org/D71981





More information about the llvm-commits mailing list