Previously LLD would error out just "ld.lld: error: unable to move location counter backward"
What does not really reveal the place of issue,
Patch adds location to the output.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lld/trunk/ELF/LinkerScript.h | ||
---|---|---|
109 ↗ | (On Diff #89205) | I wonder if it worth to make Location a member of BaseCommand. |
lld/trunk/ELF/LinkerScript.h | ||
---|---|---|
109 ↗ | (On Diff #89205) | That's a good point. I guess it might make sense to move it to BaseCommand because basically we need debug info for all commands to print out user-friendly error messages. |