This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Linkerscript: improved error reporting.
ClosedPublic

Authored by grimar on Jun 6 2017, 8:03 AM.

Details

Summary

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 does not provide file/line information and overall unclear.
Probably we should add location information to ExprValue.
That is what this patch do.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Jun 6 2017, 8:03 AM
grimar edited the summary of this revision. (Show Details)Jun 6 2017, 8:08 AM
ruiu accepted this revision.Jun 6 2017, 8:30 AM

LGTM

Great change!

This revision is now accepted and ready to land.Jun 6 2017, 8:30 AM
This revision was automatically updated to reflect the committed changes.