[PATCH] D73518: [ELF] Mention symbol name in reportRangeError()

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 00:52:28 PST 2020


grimar added inline comments.


================
Comment at: lld/ELF/Relocations.cpp:105
+    hint = "; references " + lld::toString(*rel.sym) +
+           getDefinedLocation(*rel.sym);
+
----------------
It can probably print "references local symbol" for local symbols?



================
Comment at: lld/ELF/Relocations.cpp:108
+  if (errPlace.isec && errPlace.isec->name.startswith(".debug"))
+    hint += "; consider recompiling with -fdebug-types-section to reduce size "
+            "of debug sections";
----------------
Seems there is no test case for this?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73518





More information about the llvm-commits mailing list