summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/Inputs/undef-bad-debug.s
Commit message (Collapse)AuthorAgeFilesLines
* [test][ELF] Verify debug line corruption messages are printed onceJames Henderson2020-01-021-5/+21
| | | | | | | | | | | | | LLD warns if it encounters malformed debug data when parsing line information for an undefined reference. We only want to warn once. This patch adds additional checking to make sure the warnings are printed only once, both for variables within the same program and variables in later line programs. Reviewed by: grimar, MaskRay Differential Revision: https://reviews.llvm.org/D71759
* [ELF] Rework debug line parsing to use llvm::Error and callbacks (LLD-side)James Henderson2018-05-101-1/+91
| | | | | | | | | | | | | | Reviewed by: ruiu, grimar, espindola Differential Revision: https://reviews.llvm.org/D44562 Summary: r331971 changes the debug line parser interface to report LLVM errors in an interface that different executables can use, rather than always being printed directly as warnings to stderr. This change allows LLD to make use of the new interface and call its own warning methods to report problems. llvm-svn: 331972
* [ELF] Prevent crash when reporting errors if debug line cannot be parsedJames Henderson2018-03-071-0/+44
LLD uses the debug info and debug line sections to determine the location of e.g. references to undefined symbols, when producing error messages. In the event that debug info was present, but debug line parsing failed for some reason, then a nullptr would end up being dereferenced by the location-lookup code. Differential Revision: https://reviews.llvm.org/D44205 Reviewers: grimar llvm-svn: 326899
OpenPOWER on IntegriCloud