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
- Repository
- rL LLVM
Event Timeline
| lld/trunk/ELF/LinkerScript.h | ||
|---|---|---|
| 109 | I wonder if it worth to make Location a member of BaseCommand. | |
| lld/trunk/ELF/LinkerScript.h | ||
|---|---|---|
| 109 | 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. | |
Performance is not important at all here, so just pass a copy of a std::string instead of std::string &&.