[PATCH] D25826: [ELF] Show error location for 'undefined symbol' errors
Eugene Leviant via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 07:10:55 PDT 2016
evgeny777 created this revision.
evgeny777 added reviewers: ruiu, rafael.
evgeny777 added subscribers: ikudrin, grimar, llvm-commits.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.
Herald added a subscriber: mehdi_amini.
The 'undefined symbol' is likely most common linker error, so linker typically show some location information
to make identifying problem source easier. With this patch lld will show following information about error source:
- Source file name in case STT_FILE symbol is present in object file
- Function name, if it can be retrieved.
- section name + offset
In addition to this ld/gold can show line number if debug info is present. This is the next thing I plan to do.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 12542 bytes
Desc: not available
More information about the llvm-commits