[PATCH] D33943: [ELF] - Linkerscript: improved error reporting.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 6 08:03:50 PDT 2017


grimar created this revision.
Herald added a subscriber: emaste.

When linking linux kernel LLD currently reports next errors:

ld: error: unable to evaluate expression: input section .head.text has no output section assigned
ld: error: At least one side of the expression must be absolute
ld: error: At least one side of the expression must be absolute

That soes not provide file/line information and overall unclear. 
Probably we should add location information to ExprValue.
That is what this patch do.


https://reviews.llvm.org/D33943

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/ScriptParser.cpp
  test/ELF/linkerscript/early-assign-symbol.s
  test/ELF/linkerscript/expr-invalid-sec.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33943.101565.patch
Type: text/x-patch
Size: 5109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170606/d8ab98e0/attachment.bin>


More information about the llvm-commits mailing list