[lld] [ELF] Respect orders of symbol assignments and DEFINED (PR #65866)

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 05:47:09 PDT 2023


================
@@ -476,6 +476,12 @@ struct Ctx {
   // True if we need to reserve two .got entries for local-dynamic TLS model.
   std::atomic<bool> needsTlsLd{false};
 
+  // Each symbol assignment and reference is assigned an increasing order.
----------------
smithp35 wrote:

By reference, do you mean the Defined(sym) reference. I couldn't see any other place that a symbol reference would get an increasing order.

If I'm right perhaps // Each symbol assignment and DEFINED(symbol) reference is assigned an increasing order.


https://github.com/llvm/llvm-project/pull/65866


More information about the llvm-commits mailing list