[PATCH] D23598: [ELF] Linkerscript: support assignment outside SECTIONS

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 17:17:33 PDT 2016


ruiu added a comment.

I'd even completely ignore the error and not try to make efforts to detect it. It is what we do for `.` in other contexts such as PHDRs addresses and section's AT command.


================
Comment at: ELF/LinkerScript.cpp:1078-1079
@@ -1069,2 +1077,4 @@
   assert(Op == "=" || Op == "+=");
+  //if (Name == ".")
+  //  setError("invalid reference to dot symbol");
   Expr E = readExpr();
----------------
Please remove dead code.


https://reviews.llvm.org/D23598





More information about the llvm-commits mailing list